mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
e7c6d36abf
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
16 lines
402 B
TypeScript
16 lines
402 B
TypeScript
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
|
|
import type { SnapshotPlugin } from "./_types.ts";
|
|
|
|
const INTERNAL_PLUGINS: SnapshotPlugin[] = [
|
|
// TODO(eryue0220): support internal snapshot serializer plugins
|
|
];
|
|
|
|
export function addSerializer(plugin: SnapshotPlugin) {
|
|
INTERNAL_PLUGINS.unshift(plugin);
|
|
}
|
|
|
|
export function getSerializer() {
|
|
return INTERNAL_PLUGINS;
|
|
}
|