Skip to content

Commit

Permalink
Correct type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
torjusti committed Dec 25, 2019
1 parent 793e9ea commit 9a42d86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ type Scrambler = '3x3' | '2gll' | 'cmll' | 'corners' | 'edges' | 'lse' | 'lsll'
type Solver = 'kociemba' | 'cross' | 'eoline' | 'fb' | 'xcross';

declare module 'cube-solver' {
// Main method for generating scrambls.
// Main method for generating scrambles.
export const scramble: (scrambler: Scrambler) => string;
// Solve specific subset of a given cube.
export const solve: (scramble: string, type: Solver) => string;
// Initialize given solver.
export const initialize: (solver: Solver) => void;
};

0 comments on commit 9a42d86

Please sign in to comment.