@ commercialtools- test-data/ state (英语)
此软件包为商务工具平台提供数据模型 State 说明.
https://docs.com/api/projects/states# 陈述
安装
$ pnpm add -D @commercetools-test-data/state
使用量
import {
State,
StateDraft,
type TState,
type TStateDraft,
} from '@commercetools-test-data/state';
const state = State.random().build<TState>();
const StateDraft = StateDraft.random().build<TStateDraft>();