refactor: Convert all enums to const object types in nodes-base (no-changelog) (#14131)

This commit is contained in:
Alex Grozav
2025-03-24 14:40:19 +02:00
committed by GitHub
parent defeb2e817
commit b9608647ca
31 changed files with 422 additions and 345 deletions

View File

@@ -1,8 +1,10 @@
export const enum TLP {
white,
green,
amber,
red,
}
export const TLPs = {
white: 0,
green: 1,
amber: 2,
red: 3,
};
export type TLP = (typeof TLPs)[keyof typeof TLPs];
export type QueryScope = { query: string; id?: string; restrictTo?: string };