Skip to content
0

katanakit-js / WordPressConfigSchema

Variable: WordPressConfigSchema ​

ts
const WordPressConfigSchema: ZodObject<{
  apiNamespace: ZodOptional<ZodString>;
  auth: ZodOptional<ZodDiscriminatedUnion<[ZodObject<{
     password: ZodString;
     type: ZodLiteral<"application-passwords">;
     username: ZodString;
   }, $strip>, ZodObject<{
     token: ZodString;
     type: ZodLiteral<"jwt">;
   }, $strip>, ZodObject<{
     password: ZodString;
     type: ZodLiteral<"basic">;
     username: ZodString;
   }, $strip>, ZodObject<{
     cookie: ZodString;
     nonce: ZodString;
     type: ZodLiteral<"nonce">;
  }, $strip>], "type">>;
  baseUrl: ZodString;
}, $strip>;

Defined in: src/schemas/wordpress.schema.ts:29

Configuration for the WordPress REST API integration.

Released under the MIT License.