Skip to content

Commit d8192a1

Browse files
committed
update atom/jest typings
1 parent ca117d8 commit d8192a1

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/typings/common/global.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ declare var global: Global;
22

33
interface Global {
44
document: any;
5+
atom: any;
56
}

src/typings/globals/atom/index.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ declare namespace AtomCore {
655655
bufferRangeForBufferRow(row:any, options:any):TextBuffer.IRange;
656656
lineForBufferRow(row:number):string;
657657
lineLengthForBufferRow(row:number):number;
658-
scan():any;
658+
scan(regex: RegExp, callback: Function):any;
659659
scanInBufferRange():any;
660660
backwardsScanInBufferRange():any;
661661
isModified():boolean;
@@ -762,7 +762,7 @@ declare namespace AtomCore {
762762
getSelectionsOrderedByBufferPosition():ISelection[];
763763
getLastSelectionInBuffer():ISelection;
764764
selectionIntersectsBufferRange(bufferRange:any):any;
765-
setCursorScreenPosition(position:TextBuffer.IPoint, options?:any):any;
765+
setCursorScreenPosition(position:TextBuffer.IPoint|number[], options?:any):any;
766766
getCursorScreenPosition():TextBuffer.IPoint;
767767
getCursorScreenRow():number;
768768
setCursorBufferPosition(position:any, options?:any):any;
@@ -1091,6 +1091,7 @@ declare namespace AtomCore {
10911091
openSync(uri:string, options:any):any;
10921092
openUriInPane(uri: string, pane: any, options: any): Q.Promise<View>;
10931093
observeTextEditors(callback: Function): Disposable;
1094+
onDidOpen(callback: Function): any;
10941095
reopenItemSync():any;
10951096
registerOpener(opener:(urlToOpen:string)=>any):void;
10961097
unregisterOpener(opener:Function):void;

src/typings/globals/jest/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ declare namespace jest {
3939
interface Matchers {
4040
not: Matchers;
4141
toThrow(expected?: any): boolean;
42+
toThrowError(expected?: any): boolean;
4243
toBe(expected: any): boolean;
4344
toEqual(expected: any): boolean;
4445
toBeFalsy(): boolean;

0 commit comments

Comments
 (0)