Skip to content

lspeasy / core/src / DocumentRangeFormattingParamsSchema

Variable: DocumentRangeFormattingParamsSchema

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

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

Released under the MIT License.