Repository navigation
New typings for fs-cson module - #21375
Merged
2 commits merged intoNov 10, 2017
Merged
2 commits merged into
2 commits merged into
Conversation
Member
|
types/fs-cson/index.d.ts Checklist
|
Member
|
@dex4er Please fix the failures indicated in the Travis CI log. |
ghost
reviewed
Nov 9, 2017
|
|
||
| export function readFile(filePath: string, done: (err: Error | null, result: any) => void): void; | ||
| export function readFileSync(filePath: string): any; | ||
| export function register(): any; |
Contributor
Author
There was a problem hiding this comment.
I'm not sure. register() is defined here https://github.com/charlierudolph/fs-cson/blob/ea5420ec9001f6abd4f279d83ae2f38187100335/src/register.coffee#L5
and
> require('fs-cson').register()
{}
and it looks like returns what is returned by readFileSync. But I would agree that doesn't make any sense to expect any result from register function so I'm going to change it to void.
|
Thanks! |
luho383
added a commit
to luho383/DefinitelyTyped
that referenced
this pull request
Nov 11, 2017
* master: (356 commits) vuex-i18n: Fixes from code review (DefinitelyTyped#21418) resourcejs: Increase TypeScript version to match mongoose leaflet.polylinemeasure: Add TypeScript version updated TS version to 2.3 for �abel-webpack-plugin. crlf -> lf Make hljs a proper UMD module Use only major.minor for `highlight.js`. atom: fix several incorrect definitions. Update index.d.ts Node: `path.format` input properties are optional (DefinitelyTyped#21003) New typings for fs-cson module (DefinitelyTyped#21375) New typings for bunyan-format module (DefinitelyTyped#21376) [chart.js] Add 'pie' to ChartType Update highlight.js version to latest (9.12.0) Fix type for highlight.js continuation argument Fixed errors after dts-gen New typings for module wtfnode fix getMeasure result fix: IGenericDimensionLayout change return Value of getDimension() from Dimension Object puppeteer: setCookie should be less strict ... # Conflicts: # types/three/test/css3d/css3d_sprites.ts # types/three/test/webgl/webgl_materials.ts
This pull request was closed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Please fill in this template.
npm run lint package-name(ortscif notslint.jsonis present).Select one of these and delete the others:
If adding a new definition:
dts-gen --dt, not by basing it on an existing project.tslint.jsonshould be present, andtsconfig.jsonshould havenoImplicitAny,noImplicitThis,strictNullChecks, andstrictFunctionTypesset totrue.