typescript-type
Version:
Typescript type
13 lines (9 loc) • 388 B
text/typescript
import * as t from 'io-ts';
import { PartialRecord } from '../types/operand';
export type LinkStrategy = 'default' | 'sandbox';
export const tBaseConfig = t.partial({ sandbox: t.boolean, debug: t.boolean });
export type BaseConfig = t.TypeOf<typeof tBaseConfig>;
export type LinksObject = PartialRecord<'default' | 'sandbox', {
BASE?: string,
[key: string]: string | undefined
}>;