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

Add ./src/types.ts to generated TypeScript CLI #611

Open
jamonholmgren opened this issue Sep 30, 2019 · 1 comment
Open

Add ./src/types.ts to generated TypeScript CLI #611

jamonholmgren opened this issue Sep 30, 2019 · 1 comment

Comments

@jamonholmgren
Copy link
Member

Per #451, for TypeScript generated CLIs, I'd like to add a ./src/types.ts file that you export your public-facing types from, plus these:

tsconfig.json:

  "compilerOptions": {
    "declaration": true,
    "declarationDir": "build/types",

package.json:

  "types": "build/types/types.d.ts",
@JessWallin
Copy link
Contributor

Hey! Put up a PR for this. Let me know if this is what you're looking for, I'm happy to revise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants