Skip to content

Include types #11

@fregante

Description

@fregante

I've been using these types for a while. They're not complete but they might help someone. It'd be great to have them extended and included in the package:

declare module 'dom-form-serializer' {
	import {JsonObject} from 'type-fest';

	export function serialize(
		element: HTMLFormElement,
		options: {
			include?: string[];
		}
	): JSONValue;

	export function deserialize(
		element: HTMLFormElement,
		serializedData: JsonObject,
		options?: {
			include?: string[];
		}
	): void;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions