MCPcopy
hub / github.com/sveltejs/svelte / Processed_1

Interface Processed_1

packages/svelte/types/index.d.ts:2916–2934  ·  view source on GitHub ↗

* The result of a preprocessor run. If the preprocessor does not return a result, it is assumed that the code is unchanged.

Source from the content-addressed store, hash-verified

2914 * The result of a preprocessor run. If the preprocessor does not return a result, it is assumed that the code is unchanged.
2915 */
2916 interface Processed_1 {
2917 /**
2918 * The new code
2919 */
2920 code: string;
2921 /**
2922 * A source map mapping back to the original code
2923 */
2924 map?: string | object; // we are opaque with the type here to avoid dependency on the remapping module for our public types.
2925 /**
2926 * A list of additional files to watch for changes
2927 */
2928 dependencies?: string[];
2929 /**
2930 * Only for script/style preprocessors: The updated attributes to set on the tag. If undefined, attributes stay unchanged.
2931 */
2932 attributes?: Record<string, string | boolean>;
2933 toString?: () => string;
2934 }
2935
2936 /**
2937 * A markup preprocessor that takes a string of code and returns a processed version.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…