mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 16:44:07 -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;
|
||||
}
|
||||
|
||||
type NonNullable<T> = T extends null | undefined ? never : T;
|
||||
|
||||
export type ExactDatabaseCollections = {
|
||||
[P in keyof IDatabaseCollections]: NonNullable<IDatabaseCollections[P]>
|
||||
};
|
||||
|
||||
export interface IWebhookDb {
|
||||
workflowId: number | string;
|
||||
webhookPath: string;
|
||||
|
|
Loading…
Reference in a new issue