Page MenuHomeSealhub

calculated-field.ts
No OneTemporary

calculated-field.ts

import type { App } from "../app/app.js";
import type Context from "../context.js";
import type { CollectionItem } from "../main.js";
import type Collection from "./collection.js";
export default abstract class CalculatedField<ReturnType> {
app: App;
abstract name: string;
collection: Collection;
constructor(app: App, collection: Collection) {
this.app = app;
this.collection = collection;
}
abstract calculate(
context: Context,
item: CollectionItem<any>,
db_document: any
): Promise<ReturnType>;
}

File Metadata

Mime Type
text/x-java
Expires
Mon, Dec 23, 09:12 (21 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
556888
Default Alt Text
calculated-field.ts (521 B)

Event Timeline