TYPESCRIPT custom-package.d.ts
import { CUSTOM_BOX_ID_PREFIX } from '../components/label-purchase/packages';
import { CustomPackageType } from './package-type';
export interface CustomPackage {
name: string;
length: '';
width: '';
height: '';
boxWeight: 0;
id: CUSTOM_BOX_ID_PREFIX;
type: CustomPackageType;
dimensions: `${ string } x ${ string } x ${ string }`; // L x W x H
// Legacy extension saves inner dimensions.
innerDimensions?: `${ string } x ${ string } x ${ string }`; // L x W x H
isUserDefined: true;
}