Skip to main content

RootConfig

루트 구성을 정의하는 타입입니다.

Signature

type RootConfig<P extends {
plugins: MyCommand[];
} = {
plugins: MyCommand[];
}> = {
basePath?: string;
plugins?: MyCommand[];
} & { [key in P['plugins'][number]['name']]?: Extract<P['plugins'][number], {
name: key;
}>['default'] };

References

MyCommand