This repository has been archived by the owner on Sep 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
add typescript typings #19
Labels
Comments
Merged
I already created a PR to fix this, but if in the meantime you're struggling with this, do the following: Configure typeroots in {
"compilerOptions": {
"allowJs": false,
"lib": ["es2015", "es2017"],
"module": "commonjs",
"moduleResolution": "node",
"target": "es5",
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noUnusedLocals": true,
"pretty": true,
"strict": true,
"sourceMap": true,
"outDir": "./lib",
"skipLibCheck": true,
"noImplicitAny": true,
"esModuleInterop": true,
"declaration": true,
+ "typeRoots" : ["./node_modules/@types", "./typings"]
},
"include": [
"src/**/*"
],
"compileOnSave": false
} Add declare module 'probot-config' {
import { Context } from 'probot'
import { Options as DeepMergeOptions } from 'deepmerge'
export default function getConfig<T>(
context: Context,
fileName: string,
defaultConfig?: T,
deepMergeOptions?: DeepMergeOptions
): Promise<T>
} |
@gr2m Should we do a 1.0.2 release to make the typings available? :) |
Hmm yes it should have done that automatically, looks like I didn’t setup semantic-release yet |
🎉 This issue has been resolved in version 1.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
No description provided.
The text was updated successfully, but these errors were encountered: