From 5f1ca307f74e26ca56d7609e291320b3bf192bcf Mon Sep 17 00:00:00 2001 From: Kael Zhang Date: Mon, 7 Aug 2023 16:03:18 +0800 Subject: [PATCH] test/typescript: add more tests for interface Ignore --- test/ts/simple.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/ts/simple.ts b/test/ts/simple.ts index 41ecb7e..28acd18 100644 --- a/test/ts/simple.ts +++ b/test/ts/simple.ts @@ -1,4 +1,5 @@ import ignore from '../../' +import {Ignore} from '../../' const equal = (actual, expect, message) => { if (actual !== expect) { @@ -8,7 +9,7 @@ const equal = (actual, expect, message) => { const paths = ['a', 'a/b', 'foo/bar'] -let ig = ignore() +let ig: Ignore = ignore() ig = ig.add('*') ig = ig.add(['!*/', '!foo/bar'])