Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcf44a37

Browse files
fix: export ArrayChange type (#626)
* fix: export ArrayChange type* Make ArrayChange take a type parameter like in the old DefinitelyTyped definitions---------Co-authored-by: Mark Amery <markrobertamery@gmail.com>
1 parent329f85b commitcf44a37

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

‎src/index.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ import {convertChangesToXML} from './convert/xml.js';
4747
importtype{
4848
ChangeObject,
4949
Change,
50+
ArrayChange,
5051
DiffArraysOptionsAbortable,
5152
DiffArraysOptionsNonabortable,
5253
DiffCharsOptionsAbortable,
@@ -102,6 +103,7 @@ export {
102103
exporttype{
103104
ChangeObject,
104105
Change,
106+
ArrayChange,
105107
DiffArraysOptionsAbortable,
106108
DiffArraysOptionsNonabortable,
107109
DiffCharsOptionsAbortable,

‎src/types.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export interface ChangeObject<ValueT> {
2323
// explicitly reference by name in their own code, so keeping its name consistent is valuable even
2424
// though the names of many other types are inconsistent with the old DefinitelyTyped names.
2525
exporttypeChange=ChangeObject<string>;
26-
exporttypeArrayChange=ChangeObject<any[]>;
26+
exporttypeArrayChange<T>=ChangeObject<T[]>;
2727

2828
exportinterfaceCommonDiffOptions{
2929
/**

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp