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 types definition seems to be correct:
export default class Model { static readsPerSecond: number; static writesPerSecond: number; static all<T extends Model>(this: { new (): T; }): Promise<T[]>; static clear<T extends Model>(): Promise<number>; static create<T extends Model>(this: { new (): T; }, data: any): Promise<T>; static find<T extends Model>(this: { new (): T; }, id: string): Promise<T>; static remove<T extends Model>(id: string): Promise<boolean>; ... }
But for a simple class:
export default class Measurement extends Model { @field channel: string @field timestamp: number = new Date().getTime() @field temperature: number }
i only get the static variables...
The text was updated successfully, but these errors were encountered:
maybe just a typescript bug after all; if you type it typescript is able to identify the method
Sorry, something went wrong.
No branches or pull requests
The types definition seems to be correct:
But for a simple class:
i only get the static variables...
The text was updated successfully, but these errors were encountered: