mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 02:51:14 +00:00
refactor: Convert all enums to const object types in nodes-base (no-changelog) (#14131)
This commit is contained in:
@@ -31,11 +31,13 @@ export interface IUser {
|
||||
type?: Type;
|
||||
isAnonymous?: boolean;
|
||||
}
|
||||
const enum Type {
|
||||
TYPE_UNSPECIFIED,
|
||||
HUMAN,
|
||||
BOT,
|
||||
}
|
||||
const Types = {
|
||||
TYPE_UNSPECIFIED: 0,
|
||||
HUMAN: 1,
|
||||
BOT: 2,
|
||||
} as const;
|
||||
|
||||
export type Type = (typeof Types)[keyof typeof Types];
|
||||
|
||||
// // TODO: define other interfaces
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user