1.0.0 • Published 1 year ago
naming-convention-types v1.0.0
naming-convention-types
Validate naming convention of string type.
import {
ValidateUpperSnakeCase,
ValidateCamelCase
} from 'naming-convention-type'
ValidateUpperSnakeCase<'Foo'> // never
ValidateUpperSnakeCase<'FOO_BAR'> // 'FOO_BAR'
ValidateCamelCase<'Foo'> // never
ValidateCamelCase<'foo_bar'> // never
ValidateCamelCase<'fooBar'> // 'fooBar'
1.0.0
1 year ago