Collection of useful typescript type helpers.
yarn add @alwatr/type-helper
import type {JSONObject} from '@alwatr/type-helper';
const obj: JSONObject = {
foo: 'bar',
baz: {
qux: 1,
arr: [1, 2, 3],
},
qux: true,
};
Read the source code for more details.