-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
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
TypeScript types declaration file #20
Comments
I would love to have this... Now i'm losing all the typescript typing of objection if using this plugin :/ |
Just waiting for confirmation from anybody to go ahead... |
@geopic Is this done yet? If not what can I do to still use this package and have typescript support for my models? Thanks |
A temporary fix for typescript typings declare module 'objection-unique' {
import { Model } from 'objection';
interface Options {
fields: (string | string[])[];
identifiers: string[];
}
export default function (
options?: Options
): <T extends typeof Model>(model: T) => T;
}
|
@mikiastilahun I've just been waiting for a response just so I know the maintainers are alive and accepting PRs but if @josemak25's solution works then I guess we can leave it at that. 🤷♂️ . Let me know if @josemak25's solution works 100% and I'll close this issue. 🙂 |
This npm package needs a TypeScript types declaration file so that developers who enjoy writing with TS can use it with this package and have a better development experience. Would you like me to write one?
The text was updated successfully, but these errors were encountered: