Home
last modified time | relevance | path

Searched refs:isString (Results 1 – 25 of 294) sorted by relevance

12345678910>>...12

/third_party/typescript/tests/baselines/reference/
DtypePredicatesInUnion2.symbols2 declare function isString(x: any): x is string;
3 >isString : Symbol(isString, Decl(typePredicatesInUnion2.ts, 0, 0))
12 declare function f(p: typeof isString | typeof isNumber): void;
15 >isString : Symbol(isString, Decl(typePredicatesInUnion2.ts, 0, 0))
18 f(isString);
20 >isString : Symbol(isString, Decl(typePredicatesInUnion2.ts, 0, 0))
DtypePredicatesInUnion2.types2 declare function isString(x: any): x is string;
3 >isString : (x: any) => x is string
10 declare function f(p: typeof isString | typeof isNumber): void;
11 >f : (p: typeof isString | typeof isNumber) => void
13 >isString : (x: any) => x is string
16 f(isString);
17 >f(isString) : void
19 >isString : (x: any) => x is string
DarrayEvery.symbols5 const isString = (x: unknown): x is string => typeof x === 'string';
6 >isString : Symbol(isString, Decl(arrayEvery.ts, 2, 5))
11 if (foo.every(isString)) {
15 >isString : Symbol(isString, Decl(arrayEvery.ts, 2, 5))
DarrayEvery.js4 const isString = (x: unknown): x is string => typeof x === 'string'; constant
6 if (foo.every(isString)) {
13 var isString = function (x) { return typeof x === 'string'; }; function
14 if (foo.every(isString)) {
DtypePredicatesInUnion2.js2 declare function isString(x: any): x is string;
4 declare function f(p: typeof isString | typeof isNumber): void;
5 f(isString);
10 f(isString);
DarrayEvery.types7 const isString = (x: unknown): x is string => typeof x === 'string';
8 >isString : (x: unknown) => x is string
16 if (foo.every(isString)) {
17 >foo.every(isString) : boolean
21 >isString : (x: unknown) => x is string
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/expressions/object_literal/
Dobject_literal_7.ts35 Assert.isString(obj1[1]);
36 Assert.isString(obj1['str']);
40 Assert.isString(obj2[1]);
51 Assert.isString(obj3['string']);
52 Assert.isString(obj3[1]);
56 Assert.isString(obj4['string']);
Dobject_literal_3.ts34 Assert.isString(obj1['num']);
35 Assert.isString(obj1['bool']);
47 Assert.isString(obj2['num']);
48 Assert.isString(obj2['bool']);
Dobject_literal_2.ts36 Assert.isString(obj1[2]);
37 Assert.isString(obj1[3]);
49 Assert.isString(obj2[2]);
50 Assert.isString(obj2[3]);
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/expressions/contextually_typed_expressions/
Dcontextually_typed_expressions_10.ts35 Assert.isString(arr[1])
36 Assert.isString(arr[2])
37 Assert.isString(arr[3])
38 Assert.isString(arr[4]);
/third_party/node/deps/npm/lib/utils/
Dreplace-info.js7 const isString = typeof arg === 'string'
9 if (!isArray && !isString) return arg
11 const args = isString ? arg.split(' ') : arg
19 return isString ? info.join(' ') : info
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/4.7/improved_function_inference_in_objects_and_methods/
Dimproved_function_inference_in_objects_and_methods.ts32 Assert.isString(f2);
45 Assert.isString(result);
83 Assert.isString(c1.arg.t);
88 Assert.isString(c2.arg.t);
93 Assert.isString(c3.arg.t);
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/expressions/parentheses/
Dparentheses.ts34 Assert.isString(foo);
35 Assert.isString(bar);
39 Assert.isString(value);
45 Assert.isString(str1);
/third_party/flatbuffers/kotlin/flatbuffers-kotlin/src/commonTest/kotlin/com/google/flatbuffers/kotlin/
DJSONTest.kt156 assertEquals(true, ref.isString) in testStrings()
160 assertEquals(true, ref.isString) in testStrings()
164 assertEquals(true, ref.isString) in testStrings()
168 assertEquals(true, ref.isString) in testStrings()
172 assertEquals(true, ref.isString) in testStrings()
176 assertEquals(true, ref.isString) in testStrings()
180 assertEquals(true, ref.isString) in testStrings()
185 assertEquals(true, ref.isString) in testStrings()
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/expressions/array_literals/
Darray_literal_2.ts29 Assert.isString(MyArray[0]);
30 Assert.isString(MyArray[1]);
31 Assert.isString(MyArray[2]);
/third_party/typescript/tests/cases/compiler/
DtypePredicatesInUnion2.ts1 declare function isString(x: any): x is string; function
3 declare function f(p: typeof isString | typeof isNumber): void;
4 f(isString);
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/expressions/binary_operators/the_and_operator/
Dthe_and_operator.ts36 Assert.isString(k);
44 Assert.isString(n);
54 Assert.isString(r);
65 Assert.isString(w);
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/expressions/binary_operators/the_in_operator/
Dthe_in_operator.ts33 function isString(k: A | B) { function
44 let result1 = isString({ num: 20 });
46 let result2 = isString({ str: 'A' });
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/ambients/ambient_declarations/ambient_function_declarations/
Dambient_function_declarations.ts30 const dFun1: DF1 = () => { Assert.isString("dFun1"); }
31 const dFun2: DF2 = (a: string, b: string) => { Assert.isString("dFun2"); return a + b; }
40 Assert.isString("dFun3");
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/2.7/6_improved_type_inference_for_object_literals/
D6_improved_type_inference_for_object_literals.ts28 Assert.isString(obj1.a);
45 Assert.isString(obj2.a);
52 Assert.isString(obj2.b);
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/types/type_relationships/type_inference/
Dtype_inference_4.ts43 Assert.isString(x1)
45 Assert.isString(x2)
47 Assert.isString(x3)
/third_party/vk-gl-cts/executor/
DxeContainerFormatParser.cpp297 bool isString = getChar(offset) == '"' || getChar(offset) == '\''; in parseContainerValue() local
298 int quotChar = isString ? getChar(offset) : 0; in parseContainerValue()
300 if (isString) in parseContainerValue()
309 … (isString ? (curChar == quotChar) : (curChar == ' ' || curChar == '\n' || curChar == '\r')); in parseContainerValue()
322 if (isString && getChar(offset) == quotChar) in parseContainerValue()
/third_party/node/deps/npm/node_modules/core-util-is/lib/
Dutil.js53 function isString(arg) { function
56 exports.isString = isString;
/third_party/node/deps/npm/node_modules/import-lazy/
Dreadme.md27 _().isString('unicorn');
30 const members = importLazy('lodash')('isNumber', 'isString');
33 const {isNumber, isString} = importLazy('lodash')('isNumber', 'isString');
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/expressions/binary_operators/the_or_operator/
Dthe_or_operator_1.ts45 Assert.isString(n);
65 Assert.isString(u);
76 Assert.isString(y);

12345678910>>...12