mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
* Adding type definitions for jdenticon version 1.3.2. * Updated import statement in test. * Another attempt, as I presumably misunderstood @vvakame's tip.
12 lines
258 B
TypeScript
12 lines
258 B
TypeScript
import {jdenticon} from "jdenticon";
|
|
|
|
function testJdenticon() {
|
|
if (typeof jdenticon.version !== 'string') {
|
|
throw '.version should be of string type.';
|
|
}
|
|
|
|
jdenticon.update('#jdenticon', 'd6d7705392bc7af633328bea8c4c6904', 8);
|
|
}
|
|
|
|
testJdenticon();
|