mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 00:54:06 -08:00
⚡ Create exact version of database collections
This commit is contained in:
parent
17d43ed337
commit
c928423ea7
|
@ -61,6 +61,12 @@ export interface IDatabaseCollections {
|
||||||
Tag: Repository<ITagDb> | null;
|
Tag: Repository<ITagDb> | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type NonNullable<T> = T extends null | undefined ? never : T;
|
||||||
|
|
||||||
|
export type ExactDatabaseCollections = {
|
||||||
|
[P in keyof IDatabaseCollections]: NonNullable<IDatabaseCollections[P]>
|
||||||
|
};
|
||||||
|
|
||||||
export interface IWebhookDb {
|
export interface IWebhookDb {
|
||||||
workflowId: number | string;
|
workflowId: number | string;
|
||||||
webhookPath: string;
|
webhookPath: string;
|
||||||
|
|
Loading…
Reference in a new issue