@ commercialtools- test- data/ 类型
此软件包为商务工具平台提供数据模型 Type 说明.
https://docs.com/api/projects/types# 说明书
安装
$ pnpm add -D @commercetools-test-data/type
使用量
import {
Type,
TypeDraft,
type TType,
type TypeDraft,
} from '@commercetools-test-data/type';
const type = Type.random().build<TType>();
const TypeDraft = TypeDraft.random().build<TTypeDraft>();