-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from s0/type-improvements
Introduce type-definitions for `node-gtk`
- Loading branch information
Showing
7 changed files
with
299 additions
and
39 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
declare module "node-gtk" { | ||
export namespace Gio { | ||
abstract class AsyncResult {} | ||
class Task implements AsyncResult {} | ||
class SimpleAsyncResult implements AsyncResult {} | ||
class Cancellable {} | ||
|
||
export interface Gio { | ||
Cancellable: typeof Cancellable; | ||
Task: typeof Task; | ||
SimpleAsyncResult: typeof SimpleAsyncResult; | ||
AsyncResult: typeof AsyncResult; | ||
} | ||
} | ||
export function require(name: "Gio", version: "2.0"): Gio.Gio; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
declare module "node-gtk" { | ||
export namespace GObject { | ||
class Object {} | ||
|
||
export interface GObject { | ||
Object: typeof Object; | ||
} | ||
} | ||
export function require(name: "GObject", version: "2.0"): GObject.GObject; | ||
} |
Oops, something went wrong.