ember-cli-document-title icon indicating copy to clipboard operation
ember-cli-document-title copied to clipboard

Add TypeScript ambient type information

Open mike-north opened this issue 8 years ago • 1 comments

Fixes #65

Because this is an 'extension of ember' kind of addon (often used without being explicitly imported), consumers will need to do one of two things in order to take advantage of this type information.

A. Indicate that this type information is to be included

tsconfig.json
{
  "compilerOptions": {
      "types": [
         "ember-cli-document-title"
       ]
  }
}

B. Import the entry point for this addon from somewhere in their project

app/app.ts
import Application from '@ember/application';
import loadInitializers from 'ember-load-initializers';
import config from './config/environment';
import Resolver from './resolver';
// ⬇️ ⬇️ ⬇️ ⬇️ ⬇️ ⬇️ ⬇️ ⬇️ ⬇️ ⬇️ ⬇️ ⬇️ 
import 'ember-cli-document-title';

const App = Application.extend({ ... });

mike-north avatar Dec 29 '17 18:12 mike-north

@kimroen I responded to your feedback. This should be good to go now

mike-north avatar Jul 09 '18 04:07 mike-north