Use TypeScript

This commit is contained in:
2020-09-08 13:56:03 +02:00
parent d1b7a149c0
commit 00156c8d70
8 changed files with 619 additions and 42 deletions

8
types/dashtab/index.d.ts vendored Normal file
View File

@@ -0,0 +1,8 @@
import Ember from 'ember';
declare global {
interface Array<T> extends Ember.ArrayPrototypeExtensions<T> {}
// interface Function extends Ember.FunctionPrototypeExtensions {}
}
export {};

View File

@@ -0,0 +1,6 @@
/**
* Catch-all for ember-data.
*/
export default interface ModelRegistry {
[key: string]: any;
}

6
types/global.d.ts vendored Normal file
View File

@@ -0,0 +1,6 @@
// Types for compiled templates
declare module 'dashtab/templates/*' {
import { TemplateFactory } from 'htmlbars-inline-precompile';
const tmpl: TemplateFactory;
export default tmpl;
}