Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typescript 类型报错 'setObjectLifeCycle' #405

Closed
shanheyingxin opened this issue Jan 14, 2023 · 1 comment
Closed

typescript 类型报错 'setObjectLifeCycle' #405

shanheyingxin opened this issue Jan 14, 2023 · 1 comment

Comments

@shanheyingxin
Copy link

node_modules/qiniu/index.d.ts:694:9 - error TS7010: 'setObjectLifeCycle', which lacks return-type annotation, implicitly has an 'any' return type.

'setObjectLifeCycle' 缺少void返回值

setObjectLifeCycle(
    bucket: string,
    key: string,
    options: {
        toIaAfterDays?: number,
        toArchiveAfterDays?: number,
        toDeepArchiveAfterDays?: number,
        deleteAfterDays?: number
        cond?: {
            hash?: string,
            mime?: string,
            fsize?: number,
            putTime?: number
        }
    },
    callbackFunc: callback
): void;
@lihsai0
Copy link
Collaborator

lihsai0 commented May 8, 2024

已修复,并在 v7.12.0 变更为 Promise 风格 API。

@lihsai0 lihsai0 closed this as completed May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants