@types/tar 6.1.9 → 6.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. tar/README.md +1 -1
  2. tar/index.d.ts +16 -16
  3. tar/package.json +2 -2
tar/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for tar (https://github.com/npm/node-tar)
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tar.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Fri, 10 Nov 2023 22:24:49 GMT
11
+ * Last updated: Mon, 20 Nov 2023 23:36:24 GMT
12
12
  * Dependencies: [@types/node](https://npmjs.com/package/@types/node), [minipass](https://npmjs.com/package/minipass)
13
13
 
14
14
  # Credits
tar/index.d.ts CHANGED
@@ -815,7 +815,7 @@ export type RequiredFileOptions = {
815
815
  */
816
816
  export function create(
817
817
  options: CreateOptions,
818
- fileList: ReadonlyArray<string>,
818
+ fileList: readonly string[],
819
819
  callback?: (err?: Error) => void,
820
820
  ): stream.Readable;
821
821
 
@@ -825,11 +825,11 @@ export function create(
825
825
  * fileList that starts with an @ symbol is a tar archive whose entries will
826
826
  * be added. To add a file that starts with @, prepend it with `./`.
827
827
  */
828
- export function create(options: CreateOptions & FileOptions, fileList: ReadonlyArray<string>): Promise<void>;
829
- export function create(options: CreateOptions & FileOptions & { sync: true }, fileList: ReadonlyArray<string>): void;
828
+ export function create(options: CreateOptions & FileOptions, fileList: readonly string[]): Promise<void>;
829
+ export function create(options: CreateOptions & FileOptions & { sync: true }, fileList: readonly string[]): void;
830
830
  export function create(
831
831
  options: CreateOptions & FileOptions,
832
- fileList: ReadonlyArray<string>,
832
+ fileList: readonly string[],
833
833
  callback: (err?: Error) => void,
834
834
  ): void;
835
835
 
@@ -852,7 +852,7 @@ export const c: typeof create;
852
852
  */
853
853
  export function extract(
854
854
  options: ExtractOptions,
855
- fileList?: ReadonlyArray<string>,
855
+ fileList?: readonly string[],
856
856
  callback?: (err?: Error) => void,
857
857
  ): stream.Writable;
858
858
 
@@ -866,11 +866,11 @@ export function extract(
866
866
  * extraction errors will cause a warn event to be emitted. If the cwd is
867
867
  * missing, or not a directory, then the extraction will fail completely.
868
868
  */
869
- export function extract(options: ExtractOptions & FileOptions, fileList?: ReadonlyArray<string>): Promise<void>;
870
- export function extract(options: ExtractOptions & FileOptions & { sync: true }, fileList?: ReadonlyArray<string>): void;
869
+ export function extract(options: ExtractOptions & FileOptions, fileList?: readonly string[]): Promise<void>;
870
+ export function extract(options: ExtractOptions & FileOptions & { sync: true }, fileList?: readonly string[]): void;
871
871
  export function extract(
872
872
  options: ExtractOptions & FileOptions,
873
- fileList: ReadonlyArray<string> | undefined,
873
+ fileList: readonly string[] | undefined,
874
874
  callback: (err?: Error) => void,
875
875
  ): void;
876
876
 
@@ -885,14 +885,14 @@ export const x: typeof extract;
885
885
  * are listed. If the archive is gzipped, then tar will detect this and unzip
886
886
  * it.
887
887
  */
888
- export function list(options: ListOptions & RequiredFileOptions, fileList?: ReadonlyArray<string>): Promise<void>;
888
+ export function list(options: ListOptions & RequiredFileOptions, fileList?: readonly string[]): Promise<void>;
889
889
  export function list(
890
890
  options: ListOptions & RequiredFileOptions & { sync: true },
891
- fileList?: ReadonlyArray<string>,
891
+ fileList?: readonly string[],
892
892
  ): void;
893
893
  export function list(callback?: (err?: Error) => void): Parse;
894
- export function list(optionsOrFileList: ListOptions | ReadonlyArray<string>, callback?: (err?: Error) => void): Parse;
895
- export function list(options: ListOptions, fileList: ReadonlyArray<string>, callback?: (err?: Error) => void): Parse;
894
+ export function list(optionsOrFileList: ListOptions | readonly string[], callback?: (err?: Error) => void): Parse;
895
+ export function list(options: ListOptions, fileList: readonly string[], callback?: (err?: Error) => void): Parse;
896
896
 
897
897
  /**
898
898
  * Alias for list
@@ -907,10 +907,10 @@ export const t: typeof list;
907
907
  * a tar archive whose entries will be added. To add a file that
908
908
  * starts with @, prepend it with ./.
909
909
  */
910
- export function replace(options: ReplaceOptions, fileList?: ReadonlyArray<string>): Promise<void>;
910
+ export function replace(options: ReplaceOptions, fileList?: readonly string[]): Promise<void>;
911
911
  export function replace(
912
912
  options: ReplaceOptions,
913
- fileList: ReadonlyArray<string> | undefined,
913
+ fileList: readonly string[] | undefined,
914
914
  callback: (err?: Error) => void,
915
915
  ): Promise<void>;
916
916
 
@@ -926,10 +926,10 @@ export const r: typeof replace;
926
926
  * that starts with an @ symbol is a tar archive whose entries will be added.
927
927
  * To add a file that starts with @, prepend it with ./.
928
928
  */
929
- export function update(options: ReplaceOptions, fileList?: ReadonlyArray<string>): Promise<void>;
929
+ export function update(options: ReplaceOptions, fileList?: readonly string[]): Promise<void>;
930
930
  export function update(
931
931
  options: ReplaceOptions,
932
- fileList: ReadonlyArray<string> | undefined,
932
+ fileList: readonly string[] | undefined,
933
933
  callback: (err?: Error) => void,
934
934
  ): Promise<void>;
935
935
 
tar/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/tar",
3
- "version": "6.1.9",
3
+ "version": "6.1.10",
4
4
  "description": "TypeScript definitions for tar",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tar",
6
6
  "license": "MIT",
@@ -28,6 +28,6 @@
28
28
  "@types/node": "*",
29
29
  "minipass": "^4.0.0"
30
30
  },
31
- "typesPublisherContentHash": "57421c0bc6a3554f6f686c8c82ee376f57b2d8ce46de5a5049d0d05bff0d3e79",
31
+ "typesPublisherContentHash": "31f025dae81a85ec265ef7c9defb7ba06b3692ae5dc402cf34f734a7946c5850",
32
32
  "typeScriptVersion": "4.5"
33
33
  }