refactore: Replace hardcoded null strategy strings with constant

This commit is contained in:
zhsama
2026-01-29 18:35:06 +08:00
parent 92731bffba
commit e47f690cd2
9 changed files with 87 additions and 17 deletions

View File

@ -0,0 +1,6 @@
export const NULL_STRATEGY = {
RAISE_ERROR: 'raise_error',
USE_DEFAULT: 'use_default',
} as const
export type NullStrategy = typeof NULL_STRATEGY[keyof typeof NULL_STRATEGY]