Skip to content

Refactor Contact class methods to be async #915

Refactor Contact class methods to be async

Refactor Contact class methods to be async #915

Triggered via pull request April 15, 2024 09:00
Status Failure
Total duration 1m 9s
Artifacts

node.js.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

14 errors and 2 warnings
build (ubuntu-latest, 16): examples/ding-dong-bot.ts#L64
Argument of type '(user: ContactInterface) => void' is not assignable to parameter of type 'WechatyEventListenerLogout'.
build (ubuntu-latest, 16): examples/ding-dong-bot.ts#L65
Argument of type '(user: ContactInterface) => void' is not assignable to parameter of type 'WechatyEventListenerLogin'.
build (ubuntu-latest, 16): src/user-modules/contact-self.ts#L67
Conversion of type 'ContactInterface' to type 'ContactSelfInterface' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
build (ubuntu-latest, 16): src/user-modules/contact-self.ts#L160
Property 'name' in type 'ContactSelfMixin' is not assignable to the same property in base type 'poolifyMixin<typeof ContactImpl>.(Anonymous function)<ContactSelfInterface>.AbstractPoolifyMixin & ContactImpl'.
build (ubuntu-latest, 16): src/user-modules/contact-self.ts#L161
Property 'name' in type 'ContactSelfMixin' is not assignable to the same property in base type 'poolifyMixin<typeof ContactImpl>.(Anonymous function)<ContactSelfInterface>.AbstractPoolifyMixin & ContactImpl'.
build (ubuntu-latest, 16): src/user-modules/contact-self.ts#L163
Property 'name' in type 'ContactSelfMixin' is not assignable to the same property in base type 'poolifyMixin<typeof ContactImpl>.(Anonymous function)<ContactSelfInterface>.AbstractPoolifyMixin & ContactImpl'.
build (ubuntu-latest, 16): src/user-modules/contact-self.ts#L167
Type 'Promise<string>' is not assignable to type 'string | Promise<void>'.
build (ubuntu-latest, 16): src/user-modules/contact.spec.ts#L55
Argument of type 'Promise<string>' is not assignable to parameter of type 'string'.
build (ubuntu-latest, 16): src/user-modules/contact.spec.ts#L60
Argument of type 'Promise<string>' is not assignable to parameter of type 'string'.
build (ubuntu-latest, 16): src/user-modules/contact.spec.ts#L67
Argument of type 'Promise<string>' is not assignable to parameter of type 'string'.
build (windows-latest, 16)
The job was canceled because "ubuntu-latest_16" failed.
build (windows-latest, 16)
The operation was canceled.
build (macos-latest, 16)
The job was canceled because "ubuntu-latest_16" failed.
build (macos-latest, 16)
The operation was canceled.
build (ubuntu-latest, 16)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build (ubuntu-latest, 16)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/