@thepassle/app-tools
Version:
Collection of tools I regularly use to build apps. Maybe they're useful to somebody else. Maybe not. Most of these are thin wrappers around native API's, like the native `<dialog>` element, `fetch` API, and `URLPattern`.
13 lines (12 loc) • 343 B
TypeScript
/**
* @param {{
* xsrfCookieName?: string,
* xsrfHeaderName?: string,
* }} options
* @returns {import('../index.js').Plugin}
*/
export function xsrfPlugin({ xsrfCookieName, xsrfHeaderName }?: {
xsrfCookieName?: string;
xsrfHeaderName?: string;
}): import('../index.js').Plugin;
export const xsrf: import("../types.js").Plugin;