yeoman / yeoman-api

MIT License
1 stars 2 forks source link

Fix `EnvironmentGenerator.destinationRoot(): string` type #2

Closed emilkrebs closed 10 months ago

emilkrebs commented 10 months ago

This issue is a result of: https://github.com/yeoman/yeoman-test/issues/212

EnvironmentGenerator.destinationRoot(): string is missing an argument

EnvironmentGenerator.destinationRoot(rootPath): string

This makes it unusable when using TypeScript.

Types: https://github.com/yeoman/yeoman-api/blob/62e9647453325f4afcbd2c5bf4bfcd4f57c65f0d/workspaces/types/types/generator/generator.d.ts#L15

Generator: https://github.com/yeoman/generator/blob/e8885fff1bd85b2c96ed141c4e34654c9a1570e1/lib/index.js#L1443