diff --git a/ts/types/backbone/Collection.ts b/ts/types/backbone/Collection.ts new file mode 100644 index 000000000000..e3ffe8139a98 --- /dev/null +++ b/ts/types/backbone/Collection.ts @@ -0,0 +1,11 @@ +/** + * @prettier + */ +import { Model } from './Model'; + +export interface Collection { + models: Array>; + // tslint:disable-next-line no-misused-new + new(): Collection; + fetch(options: object): JQuery.Deferred; +} diff --git a/ts/types/backbone/Model.ts b/ts/types/backbone/Model.ts new file mode 100644 index 000000000000..b1578608a28d --- /dev/null +++ b/ts/types/backbone/Model.ts @@ -0,0 +1,7 @@ +/** + * @prettier + */ + +export interface Model { + toJSON(): T; +}