mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
7 lines
194 B
TypeScript
7 lines
194 B
TypeScript
import shift = require("stream-shift");
|
|
import { createReadStream, createWriteStream } from "fs";
|
|
|
|
const stream = createReadStream(__filename);
|
|
|
|
const x: Buffer | string | null = shift(stream);
|