Skip to content

Commit

Permalink
Merge dae8bfb into d8dcfdf
Browse files Browse the repository at this point in the history
  • Loading branch information
Azliya committed Dec 25, 2019
2 parents d8dcfdf + dae8bfb commit 9f80c82
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "2.0.3",
"description": "A function to extract any colors from a string",
"main": "pipetteur.js",
"types": "pipetteur.d.ts",
"scripts": {
"lint": "jshint .",
"test": "npm run lint && mocha",
Expand Down
23 changes: 23 additions & 0 deletions pipetteur.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Type definitions for pipetteur 2.0.3
// Project: pipetteur
// Definitions by: Azliya <zhangmin093@gmail.com>

export = pipetteur;

declare function pipetteur(str: string): pipetteur.PipetteurType[];
declare namespace pipetteur {
export type PipetteurReturnType = {
index: number;
line: number;
column: number;
match: string;
color: OneColorType;
};

export type OneColorType = {
_red: number;
_green: number;
_blue: number;
_alpha: number;
};
}

0 comments on commit 9f80c82

Please sign in to comment.