收藏
回答

miniprogram-ci v1.5.1 中的一些ts定义有问题?

node_modules/miniprogram-ci/dist/@types/cloud/uploadContainer.d.ts:24:17 - error TS2304: Cannot find name 'IAPITCBCloudBaseRunImageInfo'.


24     imageInfo?: IAPITCBCloudBaseRunImageInfo;
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~


node_modules/miniprogram-ci/dist/@types/cloud/uploadContainer.d.ts:25:18 - error TS2304: Cannot find name 'IAPITCBCloudBaseCodeRepoDetail'.


25     codeDetail?: IAPITCBCloudBaseCodeRepoDetail;
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


node_modules/miniprogram-ci/dist/@types/cloud/uploadContainer.d.ts:26:23 - error TS2304: Cannot find name 'IAPITCBCloudBaseRunImageSecretInfo'.


26     imageSecretInfo?: IAPITCBCloudBaseRunImageSecretInfo;
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


node_modules/miniprogram-ci/dist/@types/cloud/uploadContainer.d.ts:30:23 - error TS2304: Cannot find name 'IAPITCBCloudBaseRunVolumeMount'.


30     mountVolumeInfo?: IAPITCBCloudBaseRunVolumeMount[];
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


node_modules/miniprogram-ci/dist/@types/cloud/uploadContainer.d.ts:41:78 - error TS2304: Cannot find name 'IAPITCBCreateCloudBaseRunServerVersionResult'.


41 export declare function uploadContainer(options: IContainerOptions): Promise<IAPITCBCreateCloudBaseRunServerVersionResult>;
                                                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




Found 5 errors.
回答关注问题邀请回答
收藏

2 个回答

  • Shannon
    Shannon
    2021-08-19

    你好,已确认这里类型定义目前有问题,我们将后续发版修复,感谢反馈。可暂时先使用 @ts-ignore 忽略类型定义使用。

    2021-08-19
    有用
    回复
  • 小猪6
    小猪6
    2021-08-18

    这是js吗?

    2021-08-18
    有用
    回复 1
    • #.o0OfF ~ lbb
      #.o0OfF ~ lbb
      2021-08-18
      typescript
      2021-08-18
      回复
登录 后发表内容