type Types = 'a' | 'b' | 'c'
export function is(p: string) {
const types: Types[] = ['a', 'b', 'c']
return types.includes(p.toLowerCase())
}
type Types = 'a' | 'b' | 'c'
export function is(p: string) {
const types: Types[] = ['a', 'b', 'c']
return types.includes(p.toLowerCase())
}
type Types = 'a' | 'b' | 'c'
export function is(p: string) {
const types: Types[] = ['a', 'b', 'c']
return types.includes(p.toLowerCase() as Types)
}
你是说这个意思?