Skip to content

lspeasy / core/src / DocumentFormattingParamsSchema

Variable: DocumentFormattingParamsSchema

ts
const DocumentFormattingParamsSchema: ZodObject<{
  options: ZodObject<{
     insertFinalNewline: ZodOptional<ZodBoolean>;
     insertSpaces: ZodBoolean;
     tabSize: ZodNumber;
     trimFinalNewlines: ZodOptional<ZodBoolean>;
     trimTrailingWhitespace: ZodOptional<ZodBoolean>;
  }, $strip>;
  textDocument: ZodObject<{
     uri: ZodString;
  }, $strip>;
  workDoneToken: ZodOptional<ZodUnion<readonly [ZodNumber, ZodString]>>;
}, $strip>;

Defined in: packages/core/src/protocol/schemas.ts:2048

Released under the MIT License.