Skip to content

New typings for bunyan-format module - #21376

Merged
5 commits merged into
DefinitelyTyped:masterfrom
dex4er:bunyan-format
Nov 10, 2017
Merged

5 commits merged into
DefinitelyTyped:masterfrom
dex4er:bunyan-format

Conversation

@dex4er

@dex4er dex4er commented Nov 9, 2017

Copy link
Copy Markdown
Contributor

Please fill in this template.

  • Use a meaningful title for the pull request. Include the name of the package modified.
  • Test the change in your own code. (Compile and run.)
  • Follow the advice from the readme.
  • Avoid common mistakes.
  • Run npm run lint package-name (or tsc if no tslint.json is present).

If adding a new definition:

  • The package does not provide its own types, and you can not add them.
  • If this is for an NPM package, match the name. If not, do not conflict with the name of an NPM package.
  • Create it with dts-gen --dt, not by basing it on an existing project.
  • tslint.json should be present, and tsconfig.json should have noImplicitAny, noImplicitThis, strictNullChecks, and strictFunctionTypes set to true.

@dt-bot

dt-bot commented Nov 9, 2017

Copy link
Copy Markdown
Member

@RyanCavanaugh RyanCavanaugh added New Definition This PR creates a new definition package. The Travis CI build failed labels Nov 9, 2017
@RyanCavanaugh

Copy link
Copy Markdown
Member

@dex4er Please fix the failures indicated in the Travis CI log.

// Project: https://github.com/thlorenz/bunyan-format
// Definitions by: Piotr Roszatycki <https://github.com/dex4er>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a // TypeScript Version: 2.1 comment on this line (just like bunyan has)

Comment thread types/bunyan-format/tsconfig.json Outdated
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": false,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be true

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is pasto because dts-gen doesn't generate correct tsconfig.json...

@@ -0,0 +1,8 @@
import bunyan = require('bunyan');

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem to show the two libraries interacting in any way?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I simplified test for this module and now it doesn't use bunyan itself.

@ghost

ghost commented Nov 10, 2017

Copy link
Copy Markdown

Thanks!

@ghost
ghost merged commit 23171be into DefinitelyTyped:master Nov 10, 2017
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
@dex4er
dex4er deleted the bunyan-format branch November 12, 2017 15:37
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

New Definition This PR creates a new definition package.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants