We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 text was updated successfully, but these errors were encountered:
fix: wrong types in declaration file
0e334e1
This sets the correct types for the setters defined in Core issue rapidjs#35
No branches or pull requests
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:The text was updated successfully, but these errors were encountered: