Page MenuHomeSealhub

replace.ts
No OneTemporary

replace.ts

import type { ShapeToType } from "@sealcode/ts-predicates";
import type Context from "../../../../context.js";
import { ArrayAction } from "./array-action.js";
const ReplaceInputShape = {};
const ReplaceParsedShape = {};
export class Replace extends ArrayAction<
ShapeToType<typeof ReplaceInputShape>,
ShapeToType<typeof ReplaceParsedShape>
> {
InputShape = ReplaceInputShape;
async _parse(
_context: Context
): Promise<ShapeToType<typeof ReplaceParsedShape> | null> {
return {};
}
async run<T>(
_context: Context,
action: ShapeToType<typeof ReplaceParsedShape>,
array: T[]
) {
return array;
}
}

File Metadata

Mime Type
text/x-java
Expires
Sat, Oct 11, 10:11 (8 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
963355
Default Alt Text
replace.ts (618 B)

Event Timeline