Lines Matching full:value
70 ### Marking JSON.parse Return Value Type
113 console.log(obj.value);
122 console.log(obj.value as string);
134 (value: string): void;
141 foo((value: string) => {
142 console.log(value);
150 type I = (value: string) => void
156 foo((value: string) => {
157 console.log(value);
169 value: string = ''
171 constructor(value: string) {
172 this.value = value;
177 new (value: string): Controller;
191 console.log(t.createController()!.value);
198 value: string = ''
200 constructor(value: string) {
201 this.value = value;
221 console.log(t.createController()!.value);
311 value: string = ''
313 constructor(value: string) {
314 this.value = value;
319 new (value: string): Controller;
333 console.log(t.createController()!.value);
340 value: string = ''
342 constructor(value: string) {
343 this.value = value;
363 console.log(t.createController()!.value);
478 value: number = 1
480 constructor(value: number) {
481 this.value = value;
485 let t: Test = { value: 2 };
493 value: number = 1
496 let t: Test = { value: 2 };
503 value: number = 1
505 constructor(value: number) {
506 this.value = value;
517 value: number = 1
523 this.value = n;
528 let t: C = { value: -2 }; // Not supported by ArkTS.
539 value: number = 0
544 'value': 1
547 'value': 2
550 'value': 3
559 value: number = 0
563 value: 1
566 value: 2
569 value: 3
580 value: 123,
589 'value': 123,
624 fn({ value: 123, name:'' });
632 value: number = 0
637 fn({ value: 123, name: '' });
647 foo(value: number): number
650 let t:T = { foo: (value) => { return value } };
657 foo: (value: number) => number
660 let t:T = { foo: (value) => { return value } };
667 foo: (value: number) => number = (value: number) => {
668 return value;
813 …{name: 'Device information', value: 'Used to analyze the battery life, call, Internet access, and …
814 {name: 'Microphone', value: 'Used to add voice when reporting an issue.'},
815 {"name: 'Storage', value: 'Used to add local file attachments when reporting an issue.'}
826 value?: string
830 …{name: 'Device information', value: 'Used to analyze the battery life, call, Internet access, and …
831 {name: 'Microphone', value: 'Used to add voice when reporting an issue.'},
832 {"name: 'Storage', value: 'Used to add local file attachments when reporting an issue.'}
906 value: number = 0
913 let t: typeof c = { value: 123 };
921 value: number = 0
928 let t: C = { value: 123 };
964 for (let [key, value] of map) {
966 console.log(value);
978 let value = arr[1];
980 console.log(value);
1101 The type of the value in the **throw** statement must be **Error** or its inheritance class. If the…
1111 console.log(this.value);
1114 let obj = { value: 'abc' };
1124 value: string = ''
1125 constructor (value: string) {
1126 this.value = value
1130 console.log(this.value);
1144 console.log(obj.value);
1148 value: string = ''
1151 let obj: Test = { value: 'abc' };
1159 function foo(value: string) {
1160 console.log(value);
1164 value: string = ''
1167 let obj: Test = { value: 'abc' };
1168 foo(obj.value);
1177 static value: number = 123
1179 return this.value
1188 static value: number = 123
1190 return Test.value
1257 value: string = ''
1258 constructor(value: string) {
1259 this.value = value
1263 type ControllerConstructor = new (value: string) => Controller;
1276 console.log(t.createController()!.value)
1283 value: string = ''
1284 constructor(value: string) {
1285 this.value = value;
1302 console.log(t.createController()!.value);
1329 getObject(value: string): Object | undefined {
1330 return this._objects.get(value);
1347 value: string = '';
1349 globalThis.value = this.value;
1355 globalThis.value;
1368 value: string = '';
1370 GlobalContext.getContext().setObject('value', this.value);
1378 GlobalContext.getContext().getObject('value');
1405 value: string = ''
1410 value: string = '1234'
1412 value: this.value,
1417 console.log(this.value);
1426 value: string = ''
1431 value: string = '1234'
1433 value: this.value,
1438 console.log(this.value);
1447 value: string = ''
1452 value: string = '1234'
1454 console.log(this.value);
1457 value: this.value,
1469 value: string;
1470 constructor (value: string) {
1471 this.value = value;
1475 console.log(this.value);
1490 value: string;
1491 constructor (value: string) {
1492 this.value = value;
1500 console.log(a.value);
1535 entries.forEach((value, key) => {
1537 obj[key] = value;
1653 In a class, if a property is not initialized and is not assigned a value in the constructor, ArkTS …
1662 value: number
1668 value: number = 0
1674 value: number
1676 constructor(value: number, flag: boolean) {
1677 this.value = value;
1699 function foo(fn: (value?: string) => void, value: string): void {}
1701 foo((value: string) => {}, ''); //error
1707 function foo(fn: (value?: string) => void, value: string): void {}
1709 foo((value?: string) => {}, '');
1714 …the passed function implementation of **(value: string) => { console.info(value.toUpperCase()) }**…
1717 function foo(fn: (value?: string) => void, value: string): void {
1722 foo((value: string) => { console.info(value.toUpperCase()) }, ''); // Cannot read properties of und…
1733 private value?: string
1736 console.log(this.value.toLowerCase());
1750 private value?: string
1753 if (this.value) {
1754 console.log(this.value.toLowerCase());
1765 …value** property of **t** is **undefined** (**value?: string** is the syntax sugar of **value: str…
1817 value: number
1818 constructor(value: number) {
1819 this.value = value;
1839 value: number
1840 constructor(value: number) {
1841 this.value = value;
1863 If you can determine that a non-null value is returned when **foo** is called, you can use a non-nu…
1867 value: number
1868 constructor(value: number) {
1869 this.value = value;
1929 value: number = 0
1934 a = { value: 1};
1936 a.value;
1938 a.value;
1945 value: number = 0
1950 a = { value:1 };
1953 a.value;
1958 a.value;
1964 For primitive types, a value can be assigned based on the service logic, for example, **0**, **''**…
1982 Return a proper value in the **else** branch based on the service logic.
2053 value: string = ''
2054 constructor(value: string) {
2055 this.value = value
2060 new (value: string): Controller;
2074 console.log(t.createController()!.value);
2081 value: string = ''
2082 constructor(value: string) {
2083 this.value = value
2100 console.log(t.createController()!.value);
2109 static value: string = 'abc'
2113 static value: string = 'def'
2117 return obj['value'];
2128 static value: string = 'abc'
2132 static value: string = 'def'
2136 return C1.value;
2140 return C2.value;
2170 function foo(value: number): void {
2171 console.log(value.toString());
2187 static foo(value: number): void {
2188 console.log(value.toString());
2316 changeText(value: string) {
2317 this.item.value = value;
2324 @State value: string = 'Hello World';
2328 Text(this.value)
2347 Button('change value').onClick(() => {
2359 value: string = '1';
2361 constructor(value: string) {
2362 this.value = value;
2373 changeText(value: string) {
2374 this.item.value = value;
2381 @State value: CC = new CC('Hello World');
2385 Text(`${this.value.value}`)
2392 this.controller.setItem(this.value);
2404 Button('change value').onClick(() => {