Page MenuHomeSealhub

replace.ts
No OneTemporary

replace.ts

import type { ShapeToType } from "@sealcode/ts-predicates";
import type Context from "../../../../context";
import { ArrayAction } from "./array-action";
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
Wed, Aug 13, 18:05 (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
876880
Default Alt Text
replace.ts (612 B)

Event Timeline