ws2356
ws2356
```ts type MyExclude = T extends string | number | symbol ? keyof { [Key in T as Key extends U ? never : Key]: any } : never ```
```ts type MyReadonly2 = { readonly [Key in K]: T[Key] } & { [Key in Exclude]: T[Key] } ```
```ts type DeepReadonly = { readonly [Key in keyof T]: T[Key] extends number | string | boolean | Function ? T[Key] : DeepReadonly } ```
relevant code: ``` import React, { Component } from 'react'; import deviceLog, {LogView} from 'react-native-device-log'; import { AppRegistry, StyleSheet, Text, View, AsyncStorage, } from 'react-native'; deviceLog.init(AsyncStorage, { logToConsole : true...