Skip to content

Commit 16a274b

Browse files
committed
Added chainUnchecked().
1 parent 0b09f8c commit 16a274b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,10 @@ declare function chain<L extends readonly unknown[]>(
241241
...fns: ChainList<Arg0<L>, L>
242242
): ChainOutput<Arg0<L>, Ret<L>>;
243243

244+
declare function chainUnchecked<W = any, R = any>(
245+
fns: readonly any[]
246+
): ChainOutput<W, R>;
247+
244248
declare namespace chain {
245249
export {
246250
none,
@@ -268,6 +272,7 @@ declare namespace chain {
268272
combineMany,
269273
combineManyMut,
270274
chain,
275+
chainUnchecked,
271276
gen,
272277
asStream,
273278
dataSource

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ module.exports.normalizeMany = defs.normalizeMany;
239239
module.exports.combineMany = defs.combineMany;
240240
module.exports.combineManyMut = defs.combineManyMut;
241241

242-
module.exports.chain = chain; // for compatibility with 2.x
242+
module.exports.chain = chain; // for compatibility with 2.x
243+
module.exports.chainUnchecked = chain; // for TypeScript to bypass type checks
243244
module.exports.gen = gen;
244245
module.exports.asStream = asStream;
245246

0 commit comments

Comments
 (0)