Closed mgred closed 6 years ago
The setters of the Core class are wrongly typed in the declaration file index.d.ts
Core
index.d.ts
declare class Core { debug: void; baseURL: void; modelName: void; routeDelimiter: void; caseSensitive: void; }
Therefore the typescript compiler complains at the following code:
import { Rapid } from 'rapid.js'; class Resource extends Rapid { boot() { this.modelName = 'my-resource'; } }
with the following error:
error TS2322: Type '"my-resource"' is not assignable to type 'void'
According to the defaults.js they simply need to have this types defined:
defaults.js
declare class Core { debug: boolean; baseURL: string; modelName: string; routeDelimiter: string; caseSensitive: boolean; }
The setters of the
Core
class are wrongly typed in the declaration fileindex.d.ts
Therefore the typescript compiler complains at the following code:
with the following error:
According to the
defaults.js
they simply need to have this types defined: