Home
last modified time | relevance | path

Searched refs:Capitalize (Results 1 – 25 of 37) sorted by relevance

12

/third_party/typescript/tests/baselines/reference/
DintrinsicTypes.js16 type TC1 = Capitalize<'hello'>; // "Hello"
17 type TC2 = Capitalize<'foo' | 'bar'>; // "Foo" | "Bar"
18 type TC3 = Capitalize<string>; // string
19 type TC4 = Capitalize<any>; // any
20 type TC5 = Capitalize<never>; // never
21 type TC6 = Capitalize<42>; // Error
89 declare type TC1 = Capitalize<'hello'>;
90 declare type TC2 = Capitalize<'foo' | 'bar'>;
91 declare type TC3 = Capitalize<string>;
92 declare type TC4 = Capitalize<any>;
[all …]
DintrinsicTypes.symbols50 type TC1 = Capitalize<'hello'>; // "Hello"
52 >Capitalize : Symbol(Capitalize, Decl(lib.es5.d.ts, --, --))
54 type TC2 = Capitalize<'foo' | 'bar'>; // "Foo" | "Bar"
56 >Capitalize : Symbol(Capitalize, Decl(lib.es5.d.ts, --, --))
58 type TC3 = Capitalize<string>; // string
60 >Capitalize : Symbol(Capitalize, Decl(lib.es5.d.ts, --, --))
62 type TC4 = Capitalize<any>; // any
64 >Capitalize : Symbol(Capitalize, Decl(lib.es5.d.ts, --, --))
66 type TC5 = Capitalize<never>; // never
68 >Capitalize : Symbol(Capitalize, Decl(lib.es5.d.ts, --, --))
[all …]
DintrinsicTypes.types38 type TC1 = Capitalize<'hello'>; // "Hello"
41 type TC2 = Capitalize<'foo' | 'bar'>; // "Foo" | "Bar"
44 type TC3 = Capitalize<string>; // string
47 type TC4 = Capitalize<any>; // any
50 type TC5 = Capitalize<never>; // never
53 type TC6 = Capitalize<42>; // Error
DintrinsicTypes.errors.txt34 type TC1 = Capitalize<'hello'>; // "Hello"
35 type TC2 = Capitalize<'foo' | 'bar'>; // "Foo" | "Bar"
36 type TC3 = Capitalize<string>; // string
37 type TC4 = Capitalize<any>; // any
38 type TC5 = Capitalize<never>; // never
39 type TC6 = Capitalize<42>; // Error
DmappedTypeAsClauses.js4 type Getters<T> = { [P in keyof T & string as `get${Capitalize<P>}`]: () => T[P] };
35 [K in keyof T as `get${Capitalize<K & string>}`]: () => T[K]
133 [P in keyof T & string as `get${Capitalize<P>}`]: () => T[P];
179 [K in keyof T as `get${Capitalize<K & string>}`]: () => T[K];
DtemplateLiteralTypes1.js27 type Cases<T extends string> = `${Uppercase<T>} ${Lowercase<T>} ${Capitalize<T>} ${Uncapitalize<T>}…
34 function test<T extends 'foo' | 'bar'>(name: `get${Capitalize<T>}`) {
78 S extends `${infer T}_${infer U}` ? `${Capitalize<Lowercase<T>>}${SnakeToPascalCase<U>}` :
79 S extends `${infer T}` ? `${Capitalize<Lowercase<T>>}` :
291 declare type Cases<T extends string> = `${Uppercase<T>} ${Lowercase<T>} ${Capitalize<T>} ${Uncapita…
294 declare function test<T extends 'foo' | 'bar'>(name: `get${Capitalize<T>}`): void;
316 …s `${infer T}_${infer U}` ? `${Capitalize<Lowercase<T>>}${SnakeToPascalCase<U>}` : S extends `${in…
DmappedTypeAsClauses.symbols4 type Getters<T> = { [P in keyof T & string as `get${Capitalize<P>}`]: () => T[P] };
9 >Capitalize : Symbol(Capitalize, Decl(lib.es5.d.ts, --, --))
118 [K in keyof T as `get${Capitalize<K & string>}`]: () => T[K]
121 >Capitalize : Symbol(Capitalize, Decl(lib.es5.d.ts, --, --))
DtemplateLiteralTypes1.types62 type Cases<T extends string> = `${Uppercase<T>} ${Lowercase<T>} ${Capitalize<T>} ${Uncapitalize<T>}…
63 >Cases : `${Uppercase<T>} ${Lowercase<T>} ${Capitalize<T>} ${Uncapitalize<T>}`
73 function test<T extends 'foo' | 'bar'>(name: `get${Capitalize<T>}`) {
74 >test : <T extends "bar" | "foo">(name: `get${Capitalize<T>}`) => void
75 >name : `get${Capitalize<T>}`
79 >name : `get${Capitalize<T>}`
83 >name : `get${Capitalize<T>}`
169 S extends `${infer T}_${infer U}` ? `${Capitalize<Lowercase<T>>}${SnakeToPascalCase<U>}` :
170 S extends `${infer T}` ? `${Capitalize<Lowercase<T>>}` :
DtemplateLiteralTypes1.symbols70 type Cases<T extends string> = `${Uppercase<T>} ${Lowercase<T>} ${Capitalize<T>} ${Uncapitalize<T>}…
77 >Capitalize : Symbol(Capitalize, Decl(lib.es5.d.ts, --, --))
92 function test<T extends 'foo' | 'bar'>(name: `get${Capitalize<T>}`) {
96 >Capitalize : Symbol(Capitalize, Decl(lib.es5.d.ts, --, --))
260 S extends `${infer T}_${infer U}` ? `${Capitalize<Lowercase<T>>}${SnakeToPascalCase<U>}` :
264 >Capitalize : Symbol(Capitalize, Decl(lib.es5.d.ts, --, --))
270 S extends `${infer T}` ? `${Capitalize<Lowercase<T>>}` :
273 >Capitalize : Symbol(Capitalize, Decl(lib.es5.d.ts, --, --))
DtemplateLiteralTypes1.errors.txt39 …type Cases<T extends string> = `${Uppercase<T>} ${Lowercase<T>} ${Capitalize<T>} ${Uncapitalize<T>…
46 function test<T extends 'foo' | 'bar'>(name: `get${Capitalize<T>}`) {
98 S extends `${infer T}_${infer U}` ? `${Capitalize<Lowercase<T>>}${SnakeToPascalCase<U>}` :
99 S extends `${infer T}` ? `${Capitalize<Lowercase<T>>}` :
DmappedTypeAsClauses.types4 type Getters<T> = { [P in keyof T & string as `get${Capitalize<P>}`]: () => T[P] };
74 [K in keyof T as `get${Capitalize<K & string>}`]: () => T[K]
/third_party/typescript/tests/cases/conformance/types/typeAliases/
DintrinsicTypes.ts18 type TC1 = Capitalize<'hello'>; // "Hello"
19 type TC2 = Capitalize<'foo' | 'bar'>; // "Foo" | "Bar"
20 type TC3 = Capitalize<string>; // string
21 type TC4 = Capitalize<any>; // any
22 type TC5 = Capitalize<never>; // never
23 type TC6 = Capitalize<42>; // Error
/third_party/typescript/tests/cases/conformance/types/literal/
DtemplateLiteralTypes1.ts29 type Cases<T extends string> = `${Uppercase<T>} ${Lowercase<T>} ${Capitalize<T>} ${Uncapitalize<T>}…
36 function test<T extends 'foo' | 'bar'>(name: `get${Capitalize<T>}`) {
80 S extends `${infer T}_${infer U}` ? `${Capitalize<Lowercase<T>>}${SnakeToPascalCase<U>}` :
81 S extends `${infer T}` ? `${Capitalize<Lowercase<T>>}` :
/third_party/typescript/tests/cases/conformance/types/mapped/
DmappedTypeAsClauses.ts6 type Getters<T> = { [P in keyof T & string as `get${Capitalize<P>}`]: () => T[P] };
37 [K in keyof T as `get${Capitalize<K & string>}`]: () => T[K]
/third_party/typescript_eslint/packages/scope-manager/tests/fixtures/type-declaration/
Dliteral-type2.ts1 type EnthusiasticGreeting<T extends string> = `${Uppercase<T>} - ${Lowercase<T>} - ${Capitalize<T>}…
Dliteral-type2.ts.shot129 identifier: Identifier<"Capitalize">,
/third_party/typescript_eslint/packages/shared-fixtures/fixtures/typescript/types/
Dtemplate-literal-type-4.src.ts1 type EnthusiasticGreeting<T extends string> = `${Uppercase<T>} - ${Lowercase<T>} - ${Capitalize<T>}…
/third_party/node/deps/npm/node_modules/yargs-parser/node_modules/camelcase/
Dreadme.md93 - [titleize](https://github.com/sindresorhus/titleize) - Capitalize every word in string
/third_party/typescript_eslint/packages/scope-manager/src/lib/
Des5.ts434 Capitalize: {
/third_party/typescript_eslint/packages/typescript-estree/tests/snapshots/typescript/types/
Dtemplate-literal-type-4.src.ts.shot376 "name": "Capitalize",
1105 "value": "Capitalize",
/third_party/skia/third_party/externals/egl-registry/extensions/KHR/
DEGL_KHR_gl_colorspace.txt191 - Capitalize SRGB in token name, change reference from VG to GL/ES
/third_party/EGL/extensions/KHR/
DEGL_KHR_gl_colorspace.txt191 - Capitalize SRGB in token name, change reference from VG to GL/ES
/third_party/icu/docs/userguide/
Dservices.md290 * Capitalize the first letter of each word
/third_party/typescript/src/lib/
Des5.d.ts1536 type Capitalize<S extends string> = intrinsic; alias
/third_party/typescript/lib/
Dlib.es5.d.ts1556 type Capitalize<S extends string> = intrinsic; alias

12