-
Notifications
You must be signed in to change notification settings - Fork 41
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
[BUG]: InstallationUnsuspendEvent.installation is never #797
Comments
Can you share your If you don't have |
I have the default setting for strict. Here is my config: // tsconfig.json
{
"extends": "./tsconfig.paths.json",
"compilerOptions": {
"lib": ["ESNext"],
"moduleResolution": "node",
"removeComments": true,
"sourceMap": true,
"target": "ESNext",
"outDir": "lib",
"skipLibCheck": true
},
"include": ["src/**/*.ts", "serverless.ts"],
"exclude": [
"node_modules/**/*",
".serverless/**/*",
".webpack/**/*",
"_warmup/**/*",
".vscode/**/*"
],
"ts-node": {
"require": ["tsconfig-paths/register"]
}
} // tsconfig.paths.json
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@functions/*": ["src/functions/*"],
"@languages/*": ["src/languages/*"],
"@src/*": ["src/*"],
"@utils/*": ["src/utils/*"]
}
}
} |
At the very minimum, we require that the The default value for |
Is there a reason for not updating the type to support both tsconfig options? |
Even with that change, you still need |
See #395 also for more info |
While I can confirm that |
That isn't a viable solution. The types are autogenerated from our JSON schema |
Okay, makes sense then |
What happened?
TypeScript converts
InstallationUnsuspendEvent.installation
to typenever
because it has troubles with the union typehttps://github.com/octokit/webhooks/blob/main/payload-types/schema.d.ts#L3516
I'd recommend removing the union since
suspended_by
andsuspended_at
can already benull
. Alternatively the fields could be omitted.Versions
@octokit/webhooks-types: 6.11.0
typescript: 4.1.3
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: