mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-04-04 20:18:03 +03:00
New utils
This commit is contained in:
4
src/utils/toUpperCase.ts
Normal file
4
src/utils/toUpperCase.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export default function toUpperCase<T extends string>(str: T): Uppercase<T> {
|
||||
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
|
||||
return str.toUpperCase() as Uppercase<T>;
|
||||
}
|
||||
Reference in New Issue
Block a user