Skip to content

Commit ea3de52

Browse files
committed
Remove node type dependency
1 parent 75d4ecf commit ea3de52

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

lib/verifyer.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@ const { failType } = require('./util');
55
exports.verifyer = verifyer;
66

77
/**
8-
* @typedef {import('events').EventEmitter} EventEmitter
98
* @typedef {null | boolean | number | string} SchemaLiteral
109
* @typedef {undefined | SchemaLiteral | SchemaArrayValue | SchemaObjectValue} SchemaValue
1110
* @typedef {SchemaValue[]} SchemaArrayValue
1211
* @typedef {{ [k: string]: SchemaValue }} SchemaObjectValue
1312
*/
13+
/**
14+
* @typedef {Object} Emitter
15+
* @property {function(string, *): boolean | void} emit
16+
*/
1417

1518
/**
1619
* @template V
@@ -50,7 +53,7 @@ exports.verifyer = verifyer;
5053
/**
5154
* @template {SchemaValue} V
5255
* @typedef WriterOptions
53-
* @property {EventEmitter} [emitter]
56+
* @property {Emitter} [emitter]
5457
*/
5558
/**
5659
* @template {SchemaValue} V

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "@studio/tsconfig",
33
"compilerOptions": {
4-
"types": ["node", "mocha"]
4+
"types": ["mocha"]
55
},
66
"include": ["**/*.js"],
77
"exclude": ["node_modules"]

tsconfig.pack.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "@studio/tsconfig",
33
"compilerOptions": {
4-
"types": ["node"],
4+
"types": [],
55
"declaration": true,
66
"noEmit": false,
77
"emitDeclarationOnly": true

0 commit comments

Comments
 (0)