Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ Ve todas las opciones en [dts-gen](https://github.com/microsoft/DefinitelyTyped-

Los miembros de Definitely Typed frecuentemente monitorean nuevos PRs, pero ten en mente que la cantidad de PRs podrían ralentizar el proceso.

Para un buen paquete de ejemplo, vea [base64-js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/base64-js).
Para un buen paquete de ejemplo, vea [base64-js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/a2ff1d2088143cbacc15786c7f3b0ec67179523c/types/base64-js).

#### Remover un paquete

Expand Down
2 changes: 1 addition & 1 deletion README.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ Si vous avez des fichiers `.d.ts` en plus de `index.d.ts`, assurez-vous qu'ils s

Les membres de Definitely Typed surveillent régulièrement les nouveaux PRs, bien qu'il faille garder à l'esprit que le nombre d'autres PRs peut ralentir les choses.

Pour un bon exemple de package, voir [base64-js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/base64-js).
Pour un bon exemple de package, voir [base64-js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/a2ff1d2088143cbacc15786c7f3b0ec67179523c/types/base64-js).

#### Supprimer un package

Expand Down
2 changes: 1 addition & 1 deletion README.it.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ Se hai file `.d.ts` oltre all'`index.d.ts`, assicurati che siano referenziati o

I membri di Definitely Typed controllano continuamente le nuove pull request, perciò sii al corrente che un alto numero di pull request potrebbe rallentarci il lavoro.

Per l'esempio di un buon package, guarda [base64-js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/base64-js).
Per l'esempio di un buon package, guarda [base64-js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/a2ff1d2088143cbacc15786c7f3b0ec67179523c/types/base64-js).

#### Rimuovere un package

Expand Down
2 changes: 1 addition & 1 deletion README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ dts-gen の全オプションは[こちら](https://github.com/microsoft/Definit

Definitely Typed のメンバーは常に新しい PR をチェックしていますが、他の PR の数によっては対応が遅れる場合があることをご了承ください。

[base64-js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/base64-js) を、パッケージのサンプルとして参考にするのがよいでしょう。
[base64-js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/a2ff1d2088143cbacc15786c7f3b0ec67179523c/types/base64-js) を、パッケージのサンプルとして参考にするのがよいでしょう。

#### パッケージを削除する

Expand Down
2 changes: 1 addition & 1 deletion README.ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ npm 에 올라가 있지 않은 패키지를 위한 자료형(Typing) 패키지
Definitely Typed 의 관리자들이 주기적으로 새로운 풀 리퀘스트(Pull request)들을 확인하기는 하지만,
다른 풀 리퀘스트(Pull request)가 많을 경우 확인이 느려질 수 있다는 걸 알아주세요.

[base64-js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/base64-js) 패키지는 좋은 예시 중 하나입니다.
[base64-js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/a2ff1d2088143cbacc15786c7f3b0ec67179523c/types/base64-js) 패키지는 좋은 예시 중 하나입니다.

#### 패키지 삭제하기

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ If you have `.d.ts` files besides `index.d.ts`, make sure that they are referenc

Definitely Typed members routinely monitor for new PRs, though keep in mind that the number of other PRs may slow things down.

For a good example package, see [base64-js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/base64-js).
For a good example package, see [base64-js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/a2ff1d2088143cbacc15786c7f3b0ec67179523c/types/base64-js).

#### Removing a package

Expand Down
2 changes: 1 addition & 1 deletion README.pt.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Se há outros arquivos `.d.ts` além do arquivo `index.d.ts`, tenha certeza de q

Os membros do Definitely Typed frequentemente monitoram os novos PRs, porém tenha em mente de que a quantidade de PRs pode atrasar o processo.

Para ver um bom exemplo, veja o pacote [base64-js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/base64-js).
Para ver um bom exemplo, veja o pacote [base64-js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/a2ff1d2088143cbacc15786c7f3b0ec67179523c/types/base64-js).

#### Removendo um pacote

Expand Down
2 changes: 1 addition & 1 deletion README.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Definitely Typed работает только благодаря вкладу

Члены группы Definitely Typed регулярно следят за новыми PR, но имейте в виду, что количество других PR может замедлить ход событий.

Хороший пример пакета смотрите [base64-js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/base64-js).
Хороший пример пакета смотрите [base64-js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/a2ff1d2088143cbacc15786c7f3b0ec67179523c/types/base64-js).

#### Удаление пакета

Expand Down
2 changes: 1 addition & 1 deletion README.zh-Hans.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ declare module "libname" {

Definitely Typed 的成员会定期查看新的 PR,但是请留意,当 PR 数量过多的时候,检查速度可能会减慢。

如果你想要真实的示例,[base64-js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/base64-js) 是个很好的例子。
如果你想要真实的示例,[base64-js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/a2ff1d2088143cbacc15786c7f3b0ec67179523c/types/base64-js) 是个很好的例子。

#### 删除软件包

Expand Down
4 changes: 4 additions & 0 deletions notNeededPackages.json
Original file line number Diff line number Diff line change
Expand Up @@ -5951,6 +5951,10 @@
"libraryName": "react-vega",
"asOfVersion": "7.0.0"
},
"react-virtualized-auto-sizer": {
"libraryName": "react-virtualized-auto-sizer",
"asOfVersion": "1.0.8"
},
"react-visibility-sensor": {
"libraryName": "react-visibility-sensor",
"asOfVersion": "5.1.0"
Expand Down
5 changes: 0 additions & 5 deletions types/dom-mediacapture-record/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
],
"types": "index",
"typesVersions": {
"<=5.0": {
"*": [
"ts5.0/*"
]
},
"<=5.6": {
"*": [
"ts5.6/*"
Expand Down

This file was deleted.

101 changes: 0 additions & 101 deletions types/dom-mediacapture-record/ts5.0/index.d.ts

This file was deleted.

20 changes: 0 additions & 20 deletions types/dom-mediacapture-record/ts5.0/tsconfig.json

This file was deleted.

12 changes: 6 additions & 6 deletions types/node/fs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ declare module "fs" {
* @since v0.8.6
* @param [len=0]
*/
export function truncate(path: PathLike, len: number | undefined | null, callback: NoParamCallback): void;
export function truncate(path: PathLike, len: number | undefined, callback: NoParamCallback): void;
/**
* Asynchronous truncate(2) - Truncate a file to a specified length.
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
Expand All @@ -593,7 +593,7 @@ declare module "fs" {
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
* @param len If not specified, defaults to `0`.
*/
function __promisify__(path: PathLike, len?: number | null): Promise<void>;
function __promisify__(path: PathLike, len?: number): Promise<void>;
}
/**
* Truncates the file. Returns `undefined`. A file descriptor can also be
Expand All @@ -604,7 +604,7 @@ declare module "fs" {
* @since v0.8.6
* @param [len=0]
*/
export function truncateSync(path: PathLike, len?: number | null): void;
export function truncateSync(path: PathLike, len?: number): void;
/**
* Truncates the file descriptor. No arguments other than a possible exception are
* given to the completion callback.
Expand Down Expand Up @@ -648,7 +648,7 @@ declare module "fs" {
* @since v0.8.6
* @param [len=0]
*/
export function ftruncate(fd: number, len: number | undefined | null, callback: NoParamCallback): void;
export function ftruncate(fd: number, len: number | undefined, callback: NoParamCallback): void;
/**
* Asynchronous ftruncate(2) - Truncate a file to a specified length.
* @param fd A file descriptor.
Expand All @@ -660,7 +660,7 @@ declare module "fs" {
* @param fd A file descriptor.
* @param len If not specified, defaults to `0`.
*/
function __promisify__(fd: number, len?: number | null): Promise<void>;
function __promisify__(fd: number, len?: number): Promise<void>;
}
/**
* Truncates the file descriptor. Returns `undefined`.
Expand All @@ -670,7 +670,7 @@ declare module "fs" {
* @since v0.8.6
* @param [len=0]
*/
export function ftruncateSync(fd: number, len?: number | null): void;
export function ftruncateSync(fd: number, len?: number): void;
/**
* Asynchronously changes owner and group of a file. No arguments other than a
* possible exception are given to the completion callback.
Expand Down
18 changes: 18 additions & 0 deletions types/node/test/fs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,24 @@ async function testPromisify() {
});
}

{
fs.truncate("path/file.txt", () => {});
fs.truncate("path/file.txt", 5, () => {});
fs.truncate("path/file.txt", undefined, () => {});

fs.truncateSync("path/file.txt");
fs.truncateSync("path/file.txt", 5);
fs.truncateSync("path/file.txt", undefined);

fs.ftruncate(123, () => {});
fs.ftruncate(123, 5, () => {});
fs.ftruncate(123, undefined, () => {});

fs.ftruncateSync(123);
fs.ftruncateSync(123, 5);
fs.ftruncateSync(123, undefined);
}

(async () => {
const handle: FileHandle = await openAsync("test", "r");
const writeStream = fs.createWriteStream("./index.d.ts", {
Expand Down
Loading