Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/07akioni/naming-convention-types
https://github.com/07akioni/naming-convention-types
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/07akioni/naming-convention-types
- Owner: 07akioni
- Created: 2023-04-29T17:45:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-29T17:45:29.000Z (over 1 year ago)
- Last Synced: 2024-11-24T16:26:00.840Z (30 days ago)
- Language: TypeScript
- Size: 1000 Bytes
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# naming-convention-types
Validate naming convention of string type.
```ts
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'
```