(value: unknown, defaultValue: string)
| 1346 | class EditorStringOption<K extends EditorOption> extends SimpleEditorOption<K, string> { |
| 1347 | |
| 1348 | public static string(value: unknown, defaultValue: string): string { |
| 1349 | if (typeof value !== 'string') { |
| 1350 | return defaultValue; |
| 1351 | } |
| 1352 | return value; |
| 1353 | } |
| 1354 | |
| 1355 | constructor(id: K, name: PossibleKeyName<string>, defaultValue: string, schema: IConfigurationPropertySchema | undefined = undefined) { |
| 1356 | if (typeof schema !== 'undefined') { |
no outgoing calls
no test coverage detected