typed-typings / env-atom Goto Github PK
View Code? Open in Web Editor NEWThe type definition for https://github.com/atom/atom
License: MIT License
The type definition for https://github.com/atom/atom
License: MIT License
Since script/global cannot have import
, I have to put all typings into atom.Typings.*
.
In the atom
and event-kit
module, currently I have to do a dummy extend to re-export the classes.
Is there a better way?
https://github.com/typed-typings/env-atom/blob/master/lib/atom.d.ts
/// <reference path="atom-namespace.d.ts" />
declare module 'atom' {
export class BufferedNodeProcess extends atom.Typings.BufferedNodeProcess {}
export class BufferedProcess extends atom.Typings.BufferedProcess {}
export class CompositeDisposable extends atom.Typings.CompositeDisposable {}
export class Task extends atom.Typings.Task {}
}
Currently I have to duplicate things in both AtomEnviornment
and declare namespace atom
. They are actually the same.
Any way to simplify this?
Branch | Build failing π¨ |
---|---|
Dependency | tslint |
Current Version | 5.2.0 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
As tslint is βonlyβ a devDependency of this project it might not break production or downstream projects, but βonlyβ your build or test tools β preventing new deploys or publishes.
I recommend you give this issue a high priority. Iβm sure you can resolve this πͺ
prefer-switch
: Change default min-cases
to 3. (#2669)outputAbsolutePaths
option (#2667)prefer-object-spread
(#2624)encoding
(#2368)prefer-conditional-expression
(#2363)indent
support indent size (#2723)object-literal-sort-keys
adds ignore-case
(#2592)quotemark
: Add avoid-template
option (#2766)await-promise
: What's considered a "Promise" is now configurable. (#2661)indent
(#2723)typedef-whitespace
(#2718)variable-name
(#2672)typedef
: Use name or parameters for error location (#2460)object-literal-sort-keys
: check shorthand properties (#2592)space-before-function-paren
: Handle get
/set
accessor (#2700)typedef-whitespace
added checks for arrow function, call and construct signature (#2718)no-object-literal-type-assertion
: Allow cast to any
(#2671)-p
option handles directories (#2756)tsconfig.json
is found next to tslint.json
(#2769)return-undefined
: Treat a return type void | undefined
same as void
(#2731)no-unnecessary-initializer
: Handle BindingElement
anywhere, not just in a VariableDeclaration
. (#2707)jsdoc-format
: correctly handle alignment in files with BOM (#2619)jsdoc-format
: don't treat empty comments (/**/
) as jsdoc (#2619)typedef-whitespace
don't warn for leading whitespace if token is preceded by line break (#2718)jsdoc-format
: fixed error position if line ends with \r\n
(#2619)prefer-switch
: add missing checks for some expressions (#2686)prefer-template
: Allow "a" + "b" + "c"
. (#2741)prefer-const
: fix false positive with variable declared outside of for-of or for-in (#2760)--project
: fix file matching with relative path to tsconfig.json
(#2688)no-default-export
: correctly handle export default abstract class {...}
(#2630)no-mergeable-namespace
: display correct line in error message (#2656)object-literal-sort-keys
: handle object spread correctly (#2592)await-promise
: Consider types derived from a Promise in union types too. (#2661)no-unsafe-any
: Fix bug where number literal in type position was flagged as an unsafe any
. (#2712)Lint.Utils.objectify
(#2764)Thanks to our contributors!
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot π΄
Branch | Build failing π¨ |
---|---|
Dependency | onchange |
Current Version | 3.2.1 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
onchange is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
Added
--filter
with a list of events to limit toThe new version differs by 4 commits.
92d2d33
3.3.0
d4d090f
Enable support for '--filter' (#55)
fc1c092
Update dependencies to enable Greenkeeper π΄ (#53)
6645eff
fix: add .travis.yml
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
I can reference some types such as Point
like this:
let p: atom.Typings.Point;
But not it's constructor:
let p = new atom.Typings.Point(1, 2);
The line above can be type checked, but will crash on runtime, because atom.Typings
is undefined
, am I using it the wrong way?
@blakeembrey , I try to work on this but need some guidance.
atom.d.ts
: "Invalid module name in augmentation, module 'atom' cannot be found"declare module 'atom' { ...}
? I don't think I'm doing it right.The use case should be (:
import atom = require('atom');
atom.commands // AtomEnvironment
atom.Disposable
Here is their API doc:
https://atom.io/docs/api/v1.5.3/AtomEnvironment
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.