Suite of AT Protocol TypeScript libraries built on web standards
21
fork

Configure Feed

Select the types of activity you want to include in your feed.

rm node streams from lex gen

+7 -10
+6 -9
lex-gen/codegen/server.ts
··· 297 297 !main.input.schema; 298 298 const streamingOutput = main.output?.encoding && !main.output.schema; 299 299 if (streamingInput || streamingOutput) { 300 - //= import stream from 'node:stream' 301 - file.addImportDeclaration({ 302 - moduleSpecifier: "node:stream", 303 - defaultImport: "stream", 304 - }); 300 + //= ReadableStream is a web standard API 301 + // No import needed for ReadableStream 305 302 } 306 303 } 307 304 ··· 359 356 name: "body", 360 357 type: def.input.schema 361 358 ? def.input.encoding.includes(",") 362 - ? "InputSchema | stream.Readable" 359 + ? "InputSchema | ReadableStream" 363 360 : "InputSchema" 364 - : "stream.Readable", 361 + : "ReadableStream", 365 362 }); 366 363 } else { 367 364 file.addTypeAlias({ ··· 393 390 if (def.output.encoding.includes(",")) { 394 391 handlerSuccess.addProperty({ 395 392 name: "body", 396 - type: "OutputSchema | Uint8Array | stream.Readable", 393 + type: "OutputSchema | Uint8Array | ReadableStream", 397 394 }); 398 395 } else { 399 396 handlerSuccess.addProperty({ name: "body", type: "OutputSchema" }); ··· 401 398 } else if (def.output?.encoding) { 402 399 handlerSuccess.addProperty({ 403 400 name: "body", 404 - type: "Uint8Array | stream.Readable", 401 + type: "Uint8Array | ReadableStream", 405 402 }); 406 403 } 407 404 handlerSuccess.addProperty({
+1 -1
lex-gen/mod.ts
··· 3 3 * 4 4 * A command-line interface for generating docs, servers, and clients 5 5 * from AT Protocol lexicon files. 6 - * 6 + * 7 7 * Previously named `lex-cli` 8 8 * 9 9 * Turn lexicon files into: