-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
167194b
commit 63f7d33
Showing
7 changed files
with
37 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
* text=auto | ||
*.js text eol=lf | ||
* text=auto eol=lf |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
language: node_js | ||
node_js: | ||
- '10' | ||
- '8' |
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,14 @@ | ||
/** | ||
List of words for making random mnemonic sentences. | ||
@example | ||
``` | ||
import mnemonicWords = require('mnemonic-words'); | ||
console.log(mnemonicWords); | ||
//=> ['abandon', 'ability', …] | ||
``` | ||
*/ | ||
declare const mnemonicWords: readonly string[]; | ||
|
||
export = mnemonicWords; |
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,6 @@ | ||
import {expectType} from 'tsd'; | ||
import mnemonicWords = require('.'); | ||
import mnemonicWordsJson = require('./words.json'); | ||
|
||
expectType<readonly string[]>(mnemonicWords); | ||
expectType<readonly string[]>(mnemonicWordsJson); |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import test from 'ava'; | ||
import m from '.'; | ||
import mnemonicWords from '.'; | ||
|
||
test(t => { | ||
t.true(Array.isArray(m)); | ||
t.true(m.length > 0); | ||
t.is(m[20], 'action'); | ||
test('main', t => { | ||
t.true(Array.isArray(mnemonicWords)); | ||
t.true(mnemonicWords.length > 0); | ||
t.is(mnemonicWords[20], 'action'); | ||
}); |
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,3 @@ | ||
declare const mnemonicWordsJson: readonly string[]; | ||
|
||
export = mnemonicWordsJson; |