title: What is the correct way to declare function's argumemt's type?
body: <pre><code>interface Note { ... }
  
  interface Notebook {
      name: string,
      note: Note[]
  }
  
  interface NotebookApi {
      createNotebook(name: Notebook['name']): Notebook
      ...
  }
  </code></pre>
  <p>Is it right way to declare type as <code>Notebook['name']</code> or I must use <code>string</code> instead of it?</p>