Giter Site home page Giter Site logo

ikatyang / dts-element Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 2.0 1.54 MB

A DOM library for generation TypeScript declaration (.d.ts) files

Home Page: https://ikatyang.github.io/dts-element/

License: MIT License

TypeScript 99.75% JavaScript 0.25%
typescript typescript-definitions

dts-element's People

Contributors

dependabot[bot] avatar greenkeeper[bot] avatar ikatyang avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dts-element's Issues

Dependency deprecation warning: tslint-config-prettier-ext (npm)

On registry https://registry.npmjs.org/, the "latest" version (v1.5.0) of dependency tslint-config-prettier-ext has the following deprecation notice:

[DEPRECATED] This project has been merged into tslint-config-prettier

Marking the latest version of an npm package as deprecated results in the entire package being considered deprecated, so contact the package author you think this is a mistake.

Affected package file(s): package.json

If you don't care about this, you can close this issue and not be warned about tslint-config-prettier-ext's deprecation again. If you would like to completely disable all future deprecation warnings then add the following to your config:

"suppressNotifications": ["deprecationWarningIssues"]

Re-emit inconsistency for `ISubType`

Version

  • dts-element v2.2.0
  • typescript v2.4.2

Code

import * as ts from 'typescript';
import * as dts from 'dts-element';

const source = `type X = A[B[C]];`;
const sourceFile = ts.createSourceFile(
  'test.ts',
  source,
  ts.ScriptTarget.Latest,
  false,
  ts.ScriptKind.TS,
);

console.log('[ts]', ts.createPrinter().printFile(sourceFile));
console.log('[dts]', dts.emit(dts.parse(source)));

Expected

[ts] type X = A[B[C]];
[dts] type X = A[B[C]];

Actual

[ts] type X = A[B[C]];
[dts] type X = A[B[C]][C];

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.