type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
MethodDeclaration
/** * @return {Object} The Object storing maps, keyed by name. */ getMaps(): any { return this.maps; }
Cloud-Swift/Mario
Source/References/MapsCreatr-0.2.1.ts
TypeScript
MethodDeclaration
/** * @param {Mixed} name A key to find the map under. This will typically be * a String. * @return {Map} The raw map keyed by the given name. */ getMapRaw(name?: string): IMapsCreatrMapRaw { var mapRaw: IMapsCreatrMapRaw = this.mapsRaw[name]; if (!mapRaw) { throw new Error("No map found under: " + name); } return mapRaw; }
Cloud-Swift/Mario
Source/References/MapsCreatr-0.2.1.ts
TypeScript
MethodDeclaration
/** * Getter for a map under the maps container. If the map has not yet been * initialized (had its areas and locations set), that is done here as lazy * loading. * * @param {Mixed} name A key to find the map under. This will typically be * a String. * @return {Map} */ getMap(name: string): IMapsCreatrMap { var map: IMapsCreatrMap = this.maps[name]; if (!map) { throw new Error("No map found under: " + name); } if (!map.initialized) { // Set the one-to-many Map->Area relationships within the Map this.setMapAreas(map); // Set the one-to-many Area->Location relationships within the Map this.setMapLocations(map); map.initialized = true; } return map; }
Cloud-Swift/Mario
Source/References/MapsCreatr-0.2.1.ts
TypeScript
MethodDeclaration
/** * Creates and stores a set of new maps based on the key/value pairs in a * given Object. These will be stored as maps by their string keys via * this.storeMap. * * @param {Object} maps An Object containing a set of key/map pairs to * store as maps. * @return {Object} The newly created maps object. */ storeMaps(maps: { [i: string]: IMapsCreatrMapRaw }): void { var i: string; for (i in maps) { if (maps.hasOwnProperty(i)) { this.storeMap(i, maps[i]); } } }
Cloud-Swift/Mario
Source/References/MapsCreatr-0.2.1.ts
TypeScript
MethodDeclaration
/** * Creates and stores a new map. The internal ObjectMaker factory is used to * auto-generate it based on a given settings object. The actual loading of * Areas and Locations is deferred to this.getMap. * * @param {Mixed} name A name under which the map should be stored, * commonly a String or Array. * @param {Object} settings An Object containing arguments to be sent to * the ObjectMakr being used as a Maps factory. * @return {Map} The newly created Map. */ storeMap(name: string, mapRaw: IMapsCreatrMapRaw): IMapsCreatrMap { if (!name) { throw new Error("Maps cannot be created with no name."); } var map: IMapsCreatrMap = this.ObjectMaker.make("Map", mapRaw); this.mapsRaw[name] = mapRaw; if (!map.areas) { throw new Error("Maps cannot be used with no areas: " + name); } if (!map.locations) { throw new Error("Maps cannot be used with no locations: " + name); } this.maps[name] = map; return map; }
Cloud-Swift/Mario
Source/References/MapsCreatr-0.2.1.ts
TypeScript
MethodDeclaration
/* Area setup (PreThing analysis) */ /** * Given a Area, this processes and returns the PreThings that are to * inhabit the Area per its creation instructions. * * Each reference (which is a JSON object taken from an Area's .creation * Array) is an instruction to this script to switch to a location, push * some number of PreThings to the PreThings object via a predefined macro, * or push a single PreThing to the PreThings object. * * Once those PreThing objects are obtained, they are filtered for validity * (e.g. location setter commands are irrelevant after a single use), and * sorted on .xloc and .yloc. * * @param {Area} area * @return {Object} An associative array of PreThing containers. The keys * will be the unique group types of all the allowed * Thing groups, which will be stored in the parent * EightBittr's GroupHoldr. Each container stores Arrays * of the PreThings sorted by .xloc and .yloc in both * increasing and decreasing order. */ getPreThings(area: IMapsCreatrArea): any { var map: IMapsCreatrMap = area.map, creation: any = area.creation, prethings: any = this.fromKeys(this.groupTypes), i: number; area.collections = {}; for (i = 0; i < creation.length; i += 1) { this.analyzePreSwitch(creation[i], prethings, area, map); } return this.processPreThingsArrays(prethings); }
Cloud-Swift/Mario
Source/References/MapsCreatr-0.2.1.ts
TypeScript
MethodDeclaration
/** * PreThing switcher: Given a JSON representation of a PreThing, this * determines what to do with it. It may be a location setter (to switch the * x- and y- location offset), a macro (to repeat some number of actions), * or a raw PreThing. * Any modifications done in a called function will be to push some number * of PreThings to their respective group in the output PreThings Object. * * @param {Object} reference A JSON mapping of some number of PreThings. * @param {Object} PreThings An associative array of PreThing Arrays, * keyed by the allowed group types. * @param {Area} area The Area object to be populated by these PreThings. * @param {Map} map The Map object containing the Area object. */ analyzePreSwitch( reference: any, prethings: any, area: IMapsCreatrArea | IMapsCreatrAreaRaw, map: IMapsCreatrMap | IMapsCreatrMapRaw): any[]| any { // Case: macro (unless it's undefined) if (reference.macro) { return this.analyzePreMacro(reference, prethings, area, map); } else { // Case: default (a regular PreThing) return this.analyzePreThing(reference, prethings, area, map); } }
Cloud-Swift/Mario
Source/References/MapsCreatr-0.2.1.ts
TypeScript
MethodDeclaration
/** * PreThing case: Macro instruction. This calls the macro on the same input, * captures the output, and recursively repeats the analyzePreSwitch driver * function on the output(s). * * @param {Object} reference A JSON mapping of some number of PreThings. * @param {Object} PreThings An associative array of PreThing Arrays, * keyed by the allowed group types. * @param {Area} area The Area object to be populated by these PreThings. * @param {Map} map The Map object containing the Area object. */ analyzePreMacro( reference: any, prethings: any, area: IMapsCreatrArea | IMapsCreatrAreaRaw, map: IMapsCreatrMap | IMapsCreatrMapRaw): any[]| any { var macro: any = this.macros[reference.macro], outputs: any[]| any, i: number; if (!macro) { console.warn( "A non-existent macro is referenced. It will be ignored:", macro, reference, prethings, area, map ); return; } // Avoid modifying the original macro by creating a new object in its // place, while submissively proliferating any default macro settings outputs = macro(reference, prethings, area, map, this.scope); // If there is any output, recurse on all components of it, Array or not if (outputs) { if (outputs instanceof Array) { for (i = 0; i < outputs.length; i += 1) { this.analyzePreSwitch(outputs[i], prethings, area, map); } } else { this.analyzePreSwitch(outputs, prethings, area, map); } } return outputs; }
Cloud-Swift/Mario
Source/References/MapsCreatr-0.2.1.ts
TypeScript
MethodDeclaration
/** * Macro case: PreThing instruction. This creates a PreThing from the * given reference and adds it to its respective group in PreThings (based * on the PreThing's [keyGroupType] variable). * * @param {Object} reference A JSON mapping of some number of PreThings. * @param {Object} PreThings An associative array of PreThing Arrays, * keyed by the allowed group types. * @param {Area} area The Area object to be populated by these PreThings. * @param {Map} map The Map object containing the Area object. */ analyzePreThing( reference: any, prethings: any, area: IMapsCreatrArea | IMapsCreatrAreaRaw, map: IMapsCreatrMap | IMapsCreatrMapRaw): any[]| any { var title: string = reference.thing, thing: IThing, prething: PreThing; if (!this.ObjectMaker.hasFunction(title)) { console.warn("A non-existent Thing type is referenced. It will be ignored:", title, reference, prethings, area, map); return; } prething = new PreThing(this.ObjectMaker.make(title, reference), reference, this.ObjectMaker); thing = prething.thing; if (!prething.thing[this.keyGroupType]) { console.warn( "A Thing does not contain a " + this.keyGroupType + ". It will be ignored:", prething, "\n", arguments ); return; } if (this.groupTypes.indexOf(prething.thing[this.keyGroupType]) === -1) { console.warn( "A Thing contains an unknown " + this.keyGroupType + ". It will be ignored:", thing[this.keyGroupType], prething, reference, prethings, area, map ); return; } prethings[prething.thing[this.keyGroupType]].push(prething); if (!thing.noBoundaryStretch && (<IMapsCreatrArea>area).boundaries) { this.stretchAreaBoundaries(prething, <IMapsCreatrArea>area); } // If a Thing is an entrance, then the location it is an entrance to // must know it and its position. Note that this will have to be changed // for Pokemon/Zelda style games. if (thing[this.keyEntrance] !== undefined && typeof thing[this.keyEntrance] !== "object") { if (typeof map.locations[thing[this.keyEntrance]] !== "undefined") { if (typeof map.locations[thing[this.keyEntrance]].xloc === "undefined") { map.locations[thing[this.keyEntrance]].xloc = prething.left; } if (typeof map.locations[thing[this.keyEntrance]].yloc === "undefined") { map.locations[thing[this.keyEntrance]].yloc = prething.top; } map.locations[thing[this.keyEntrance]].entrance = prething.thing; } } if (reference.collectionName && (<IMapsCreatrArea>area).collections) { this.ensureThingCollection( prething, reference.collectionName, reference.collectionKey, <IMapsCreatrArea>area ); } return prething; }
Cloud-Swift/Mario
Source/References/MapsCreatr-0.2.1.ts
TypeScript
MethodDeclaration
/** * Converts the raw area settings in a Map into Area objects. * * These areas are typically stored as an Array or Object inside the Map * containing some number of attribute keys (such as "settings") along with * an Array under "Creation" that stores some number of commands for * populating that area in MapsHandlr::spawnMap. * * @param {Map} map */ private setMapAreas(map: IMapsCreatrMap): void { var areasRaw: any = map.areas, locationsRaw: any = map.locations, // The parsed containers should be the same types as the originals areasParsed: any = new areasRaw.constructor(), locationsParsed: any = new locationsRaw.constructor(), area: IMapsCreatrArea, location: IMapsCreatrLocation, i: string; // Parse all the Area objects (works for both Arrays and Objects) for (i in areasRaw) { if (areasRaw.hasOwnProperty(i)) { area = this.ObjectMaker.make("Area", areasRaw[i]); areasParsed[i] = area; area.map = map; area.name = i; area.boundaries = { "top": 0, "right": 0, "bottom": 0, "left": 0 }; } } // Parse all the Location objects (works for both Arrays and Objects) for (i in locationsRaw) { if (locationsRaw.hasOwnProperty(i)) { location = this.ObjectMaker.make("Location", locationsRaw[i]); locationsParsed[i] = location; location.entryRaw = locationsRaw[i].entry; location.name = i; location.area = locationsRaw[i].area || 0; if (this.requireEntrance) { if (!this.entrances.hasOwnProperty(location.entryRaw)) { throw new Error("Location " + i + " has unknown entry string: " + location.entryRaw); } } if (this.entrances && location.entryRaw) { location.entry = this.entrances[location.entryRaw]; } else if (location.entry && location.entry.constructor === String) { location.entry = this.entrances[String(location.entry)]; } } } // Store the output object in the Map, and keep the raw settings for the // sake of debugging / user interest map.areas = areasParsed; map.locations = locationsParsed; }
Cloud-Swift/Mario
Source/References/MapsCreatr-0.2.1.ts
TypeScript
MethodDeclaration
/** * Converts the raw location settings in a Map into Location objects. * * These locations typically have very little information, generally just a * container Area, x-location, y-location, and spawning function. * * @param {Map} map */ private setMapLocations(map: IMapsCreatrMap): void { var locsRaw: any = map.locations, // The parsed container should be the same type as the original locsParsed: any = new locsRaw.constructor(), location: IMapsCreatrLocation, i: string; // Parse all the keys in locasRaw (works for both Arrays and Objects) for (i in locsRaw) { if (locsRaw.hasOwnProperty(i)) { location = this.ObjectMaker.make("Location", locsRaw[i]); locsParsed[i] = location; // The area should be an object reference, under the Map's areas location.area = map.areas[locsRaw[i].area || 0]; if (!locsParsed[i].area) { throw new Error("Location " + i + " references an invalid area:" + locsRaw[i].area); } } } // Store the output object in the Map, and keep the old settings for the // sake of debugging / user interest map.locations = locsParsed; }
Cloud-Swift/Mario
Source/References/MapsCreatr-0.2.1.ts
TypeScript
MethodDeclaration
/** * "Stretches" an Area's boundaries based on a PreThing. For each direction, * if the PreThing has a more extreme version of it (higher top, etc.), the * boundary is updated. * * @param {PreThing} prething * @param {Area} area */ private stretchAreaBoundaries(prething: PreThing, area: IMapsCreatrArea): void { var boundaries: any = area.boundaries; boundaries.top = Math.min(prething.top, boundaries.top); boundaries.right = Math.max(prething.right, boundaries.right); boundaries.bottom = Math.max(prething.bottom, boundaries.bottom); boundaries.left = Math.min(prething.left, boundaries.left); }
Cloud-Swift/Mario
Source/References/MapsCreatr-0.2.1.ts
TypeScript
MethodDeclaration
/** * Adds a Thing to the specified collection in the Map's Area. * * @param {PreThing} prething * @param {String} collectionName * @param {String} collectionKey * @param {Area} area */ private ensureThingCollection(prething: PreThing, collectionName: string, collectionKey: string, area: IMapsCreatrArea): void { var thing: IThing = prething.thing, collection: any = area.collections[collectionName]; if (!collection) { collection = area.collections[collectionName] = {}; } thing.collection = collection; collection[collectionKey] = thing; }
Cloud-Swift/Mario
Source/References/MapsCreatr-0.2.1.ts
TypeScript
MethodDeclaration
/** * Creates an Object wrapper around a PreThings Object with versions of * each child PreThing[] sorted by xloc and yloc, in increasing and * decreasing order. * * @param {Object} prethings * @return {Object} A PreThing wrapper with the keys "xInc", "xDec", * "yInc", and "yDec". */ private processPreThingsArrays(prethings: any): any { var scope: MapsCreatr = this, output: any = {}, i: string; for (i in prethings) { if (prethings.hasOwnProperty(i)) { var children: PreThing[] = prethings[i], array: any = { "xInc": this.getArraySorted(children, this.sortPreThingsXInc), "xDec": this.getArraySorted(children, this.sortPreThingsXDec), "yInc": this.getArraySorted(children, this.sortPreThingsYInc), "yDec": this.getArraySorted(children, this.sortPreThingsYDec) }; // Adding in a "push" lambda allows MapsCreatr to interact with // this using the same .push syntax as Arrays. array.push = (function (prething: PreThing): void { scope.addArraySorted(this.xInc, prething, scope.sortPreThingsXInc); scope.addArraySorted(this.xDec, prething, scope.sortPreThingsXDec); scope.addArraySorted(this.yInc, prething, scope.sortPreThingsYInc); scope.addArraySorted(this.yDec, prething, scope.sortPreThingsYDec); }).bind(array); output[i] = array; } } return output; }
Cloud-Swift/Mario
Source/References/MapsCreatr-0.2.1.ts
TypeScript
MethodDeclaration
/* Utilities */ /** * Creates an Object pre-populated with one key for each of the Strings in * the input Array, each pointing to a new Array. * * @param {String[]} arr * @return {Object} * @remarks This is a rough opposite of Object.keys, which takes in an * Object and returns an Array of Strings. */ private fromKeys(arr: string[]): any { var output: any = {}, i: number; for (i = 0; i < arr.length; i += 1) { output[arr[i]] = []; } return output; }
Cloud-Swift/Mario
Source/References/MapsCreatr-0.2.1.ts
TypeScript
MethodDeclaration
/** * Returns a shallow copy of an Array, in sorted order based on a given * sorter Function. * * @param {Array} array * @param {Function} sorter * @ */ private getArraySorted(array: any[], sorter: (a: any, b: any) => number): any[] { var copy: any[] = array.slice(); copy.sort(sorter); return copy; }
Cloud-Swift/Mario
Source/References/MapsCreatr-0.2.1.ts
TypeScript
MethodDeclaration
/** * Adds an element into an Array using a sorter Function. * * @param {Array} array * @param {Mixed} element * @param {Function} sorter A Function that returns the difference between * two elements (for example, a Numbers sorter * given (a,b) would return a - b). */ private addArraySorted(array: any, element: any, sorter: (a: any, b: any) => number): void { var lower: number = 0, upper: number = array.length, index: number; while (lower !== upper) { index = ((lower + upper) / 2) | 0; // Case: element is less than the index if (sorter(element, array[index]) < 0) { upper = index; } else { // Case: element is higher than the index lower = index + 1; } } if (lower === upper) { array.splice(lower, 0, element); return; } }
Cloud-Swift/Mario
Source/References/MapsCreatr-0.2.1.ts
TypeScript
MethodDeclaration
/** * Sorter for PreThings that results in increasing horizontal order. * * @param {PreThing} a * @param {PreThing} b */ private sortPreThingsXInc(a: PreThing, b: PreThing): number { return a.left === b.left ? a.top - b.top : a.left - b.left; }
Cloud-Swift/Mario
Source/References/MapsCreatr-0.2.1.ts
TypeScript
MethodDeclaration
/** * Sorter for PreThings that results in decreasing horizontal order. * * @param {PreThing} a * @param {PreThing} b */ private sortPreThingsXDec(a: PreThing, b: PreThing): number { return b.right === a.right ? b.bottom - a.bottom : b.right - a.right; }
Cloud-Swift/Mario
Source/References/MapsCreatr-0.2.1.ts
TypeScript
MethodDeclaration
/** * Sorter for PreThings that results in increasing vertical order. * * @param {PreThing} a * @param {PreThing} b */ private sortPreThingsYInc(a: PreThing, b: PreThing): number { return a.top === b.top ? a.left - b.left : a.top - b.top; }
Cloud-Swift/Mario
Source/References/MapsCreatr-0.2.1.ts
TypeScript
MethodDeclaration
/** * Sorter for PreThings that results in decreasing vertical order. * * @param {PreThing} a * @param {PreThing} b */ private sortPreThingsYDec(a: PreThing, b: PreThing): number { return b.bottom === a.bottom ? b.right - a.right : b.bottom - a.bottom; }
Cloud-Swift/Mario
Source/References/MapsCreatr-0.2.1.ts
TypeScript
FunctionDeclaration
/// <reference no-default-lib="true" /> /// <reference lib="es5" /> /// <reference lib="dom" /> export function _createTokenGenerator(opts?: Hml.TokenGeneratorOptions): Hml.TokenGenerator;
hmljs/hml
src/_createTokenGenerator.d.ts
TypeScript
ArrowFunction
(...datas: Dependencies) => { return options.metaizer ? new Link(link(...datas), options.metaizer.metaize(...datas)) : new Link(link(...datas)); }
DManavi/ts-japi
src/classes/linker.ts
TypeScript
ClassDeclaration
/** * The {@linkcode Linker} class is used to construct a [link](https://jsonapi.org/format/#document-links). * * Example: * ```typescript * [[include:linker.example.ts]] * ``` */ export default class Linker<Dependencies extends any[]> { /** @internal Generates a {@linkcode Link}. */ public link: VariadicFunction<Dependencies, Link>; /** * Creates a {@linkcode Linker}. * * @param link A {@linkcode LinkFunction} used to generate a string URI from its arguments. * @param options Options for the linker. */ public constructor( link: VariadicFunction<Dependencies, string>, options: LinkerOptions<Dependencies> = {} ) { this.link = (...datas: Dependencies) => { return options.metaizer ? new Link(link(...datas), options.metaizer.metaize(...datas)) : new Link(link(...datas)); }; } }
DManavi/ts-japi
src/classes/linker.ts
TypeScript
ArrowFunction
o => o.type === "error"
Demi1024/gather
src/model/cell.ts
TypeScript
ArrowFunction
output => output.toJSON()
Demi1024/gather
src/model/cell.ts
TypeScript
ClassDeclaration
/** * Abstract class for accessing the data that nbgather needs for a cell. * abstract 声明为抽象的类,它可以包含也可以不包含抽象方法。抽象类不能被实例化,但可以被子类化 * 基于原本的 jupyterlab 的 cell 生成一个新的 gather cell */ export abstract class NbGatherCell implements Cell { abstract id: string; abstract executionCount: number; abstract executionEventId: string; abstract persistentId: string; abstract hasError: boolean; abstract text: string; abstract gathered: boolean; abstract outputs: nbformat.IOutput[]; abstract deepCopy(): NbGatherCell; /** * The cell's text when it was executed, i.e., when the execution count was last changed. * This will be undefined if the cell has never been executed. */ abstract lastExecutedText: string; get dirty(): boolean { return this.text !== this.lastExecutedText; } /** * This method is called by the logger to sanitize cell data before logging it. This method * should elide any sensitive data, like the cell's text. */ toJSON(): any { return { id: this.id, executionCount: this.executionCount, persistentId: this.persistentId, lineCount: this.text.split("\n").length, hasError: this.hasError, gathered: this.gathered }; } serialize(): nbformat.ICodeCell { return { id: this.id, execution_count: this.executionCount, source: this.text, cell_type: "code", outputs: this.outputs, metadata: { gathered: this.gathered, execution_event_id: this.executionEventId, persistent_id: this.persistentId } }; } }
Demi1024/gather
src/model/cell.ts
TypeScript
ClassDeclaration
/** * An interface to cell data loaded in the execution log. */ export class LogCell extends NbGatherCell { constructor(options: LogCellOptions) { super(); this.id = options.id || UUID.uuid4(); this.executionCount = options.executionCount || undefined; this.persistentId = options.persistentId || UUID.uuid4(); this.executionEventId = options.executionEventId || UUID.uuid4(); this.hasError = options.hasError || false; this.text = options.text || ""; this.lastExecutedText = this.text; this.outputs = options.outputs || []; this.gathered = false; } deepCopy(): NbGatherCell { return new LogCell(this); } readonly id: string; readonly executionCount: number; readonly persistentId: string; readonly executionEventId: string; readonly hasError: boolean; readonly text: string; readonly lastExecutedText: string; readonly outputs: nbformat.IOutput[]; readonly gathered: boolean; }
Demi1024/gather
src/model/cell.ts
TypeScript
ClassDeclaration
/** * Wrapper around a code cell model created by Jupyter Lab, with a consistent interface for * accessing key data for gathering code. * 给 jupyterlab 的 cell 进行一层包装,具有一致的接口访问关键数据以收集代码 */ export class LabCell extends NbGatherCell { constructor(model: ICodeCellModel) { super(); this._model = model; /* * Force the initialization of a persistent ID to make sure it's set before someone tries to clone the cell. */ this.persistentId; } get model(): ICodeCellModel { return this._model; } get id(): string { return this._model.id; } get persistentId(): string { if (!this._model.metadata.has("persistent_id")) { this._model.metadata.set("persistent_id", UUID.uuid4()); } return this._model.metadata.get("persistent_id") as string; } get executionEventId(): string { return this._model.metadata.get("execution_event_id") as string; } set executionEventId(id: string) { this._model.metadata.set("execution_event_id", id); } get text(): string { return this._model.value.text; } set text(text: string) { this._model.value.text = text; } get lastExecutedText(): string { return this._model.metadata.get("last_executed_text") as string; } set lastExecutedText(text: string) { this._model.metadata.set("last_executed_text", text); } get executionCount(): number { return this._model.executionCount; } set executionCount(count: number) { this._model.executionCount = count; } get hasError(): boolean { return this.output.some(o => o.type === "error"); } get output(): IOutputModel[] { let outputs = []; if (this._model.outputs) { for (let i = 0; i < this._model.outputs.length; i++) { outputs.push(this._model.outputs.get(i)); } return outputs; } } get outputs(): nbformat.IOutput[] { return this.output.map(output => output.toJSON()); } get gathered(): boolean { return this._model.metadata.get("gathered") as boolean; } deepCopy(): LabCell { return new LabCell( new CodeCellModel({ id: this.id, cell: this.model.toJSON() }) ); } serialize(): any { return this._model.toJSON(); } private _model: ICodeCellModel; }
Demi1024/gather
src/model/cell.ts
TypeScript
InterfaceDeclaration
export interface LogCellOptions { id?: string; executionCount?: number; persistentId?: string; executionEventId?: string; hasError?: boolean; text?: string; outputs?: nbformat.IOutput[]; }
Demi1024/gather
src/model/cell.ts
TypeScript
MethodDeclaration
abstract deepCopy(): NbGatherCell;
Demi1024/gather
src/model/cell.ts
TypeScript
MethodDeclaration
/** * This method is called by the logger to sanitize cell data before logging it. This method * should elide any sensitive data, like the cell's text. */ toJSON(): any { return { id: this.id, executionCount: this.executionCount, persistentId: this.persistentId, lineCount: this.text.split("\n").length, hasError: this.hasError, gathered: this.gathered }; }
Demi1024/gather
src/model/cell.ts
TypeScript
MethodDeclaration
serialize(): nbformat.ICodeCell { return { id: this.id, execution_count: this.executionCount, source: this.text, cell_type: "code", outputs: this.outputs, metadata: { gathered: this.gathered, execution_event_id: this.executionEventId, persistent_id: this.persistentId } }; }
Demi1024/gather
src/model/cell.ts
TypeScript
MethodDeclaration
deepCopy(): NbGatherCell { return new LogCell(this); }
Demi1024/gather
src/model/cell.ts
TypeScript
MethodDeclaration
deepCopy(): LabCell { return new LabCell( new CodeCellModel({ id: this.id, cell: this.model.toJSON() }) ); }
Demi1024/gather
src/model/cell.ts
TypeScript
MethodDeclaration
serialize(): any { return this._model.toJSON(); }
Demi1024/gather
src/model/cell.ts
TypeScript
ClassDeclaration
export class DescribeGroupCommand extends $Command< DescribeGroupCommandInput, DescribeGroupCommandOutput, QuickSightClientResolvedConfig > { // Start section: command_properties // End section: command_properties constructor(readonly input: DescribeGroupCommandInput) { // Start section: command_constructor super(); // End section: command_constructor } resolveMiddleware( clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler<DescribeGroupCommandInput, DescribeGroupCommandOutput> { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); const stack = clientStack.concat(this.middlewareStack); const { logger } = configuration; const handlerExecutionContext: HandlerExecutionContext = { logger, inputFilterSensitiveLog: DescribeGroupRequest.filterSensitiveLog, outputFilterSensitiveLog: DescribeGroupResponse.filterSensitiveLog, }; const { requestHandler } = configuration; return stack.resolve( (request: FinalizeHandlerArguments<any>) => requestHandler.handle(request.request as __HttpRequest, options || {}), handlerExecutionContext ); } private serialize(input: DescribeGroupCommandInput, context: __SerdeContext): Promise<__HttpRequest> { return serializeAws_restJson1DescribeGroupCommand(input, context); } private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeGroupCommandOutput> { return deserializeAws_restJson1DescribeGroupCommand(output, context); } // Start section: command_body_extra // End section: command_body_extra }
rvaronos/aws-sdk-js-v3
clients/client-quicksight/commands/DescribeGroupCommand.ts
TypeScript
TypeAliasDeclaration
export type DescribeGroupCommandInput = DescribeGroupRequest;
rvaronos/aws-sdk-js-v3
clients/client-quicksight/commands/DescribeGroupCommand.ts
TypeScript
TypeAliasDeclaration
export type DescribeGroupCommandOutput = DescribeGroupResponse & __MetadataBearer;
rvaronos/aws-sdk-js-v3
clients/client-quicksight/commands/DescribeGroupCommand.ts
TypeScript
MethodDeclaration
resolveMiddleware( clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: QuickSightClientResolvedConfig, options?: __HttpHandlerOptions ): Handler<DescribeGroupCommandInput, DescribeGroupCommandOutput> { this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); const stack = clientStack.concat(this.middlewareStack); const { logger } = configuration; const handlerExecutionContext: HandlerExecutionContext = { logger, inputFilterSensitiveLog: DescribeGroupRequest.filterSensitiveLog, outputFilterSensitiveLog: DescribeGroupResponse.filterSensitiveLog, }; const { requestHandler } = configuration; return stack.resolve( (request: FinalizeHandlerArguments<any>) => requestHandler.handle(request.request as __HttpRequest, options || {}), handlerExecutionContext ); }
rvaronos/aws-sdk-js-v3
clients/client-quicksight/commands/DescribeGroupCommand.ts
TypeScript
MethodDeclaration
private serialize(input: DescribeGroupCommandInput, context: __SerdeContext): Promise<__HttpRequest> { return serializeAws_restJson1DescribeGroupCommand(input, context); }
rvaronos/aws-sdk-js-v3
clients/client-quicksight/commands/DescribeGroupCommand.ts
TypeScript
MethodDeclaration
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeGroupCommandOutput> { return deserializeAws_restJson1DescribeGroupCommand(output, context); }
rvaronos/aws-sdk-js-v3
clients/client-quicksight/commands/DescribeGroupCommand.ts
TypeScript
InterfaceDeclaration
export interface IVoteItem { id: string; title: string; link: string; votedCount: number; updatedAt: string; }
kasim444/vote-app
src/interfaces/IVoteItem.ts
TypeScript
TypeAliasDeclaration
export type AddVoteFormValueTypes = Pick<IVoteItem, "title" | "link">;
kasim444/vote-app
src/interfaces/IVoteItem.ts
TypeScript
FunctionDeclaration
/** * Some function! * * @returns whatever you want it to :) */ export default function fn<T>(t: T): T { return t; }
thislooksfun/ts-template
src/index.ts
TypeScript
ClassDeclaration
/** * Message to respond to a trust ping message * * @see https://github.com/hyperledger/aries-rfcs/blob/master/features/0048-trust-ping/README.md#messages */ export class TrustPingResponseMessage extends AgentMessage { /** * Create new TrustPingResponseMessage instance. * responseRequested will be true if not passed * @param options */ public constructor(options: TrustPingResponseMessageOptions) { super() if (options) { this.id = options.id || this.generateId() this.comment = options.comment this.setThread({ threadId: options.threadId, }) if (options.timing) { this.setTiming({ inTime: options.timing.inTime, outTime: options.timing.outTime, }) } } } @Equals(TrustPingResponseMessage.type) public readonly type = TrustPingResponseMessage.type public static readonly type = 'https://didcomm.org/trust_ping/1.0/ping_response' @IsString() @IsOptional() public comment?: string }
Eengineer1/aries-framework-javascript
packages/core/src/modules/connections/messages/TrustPingResponseMessage.ts
TypeScript
InterfaceDeclaration
export interface TrustPingResponseMessageOptions { comment?: string id?: string threadId: string timing?: Pick<TimingDecorator, 'inTime' | 'outTime'> }
Eengineer1/aries-framework-javascript
packages/core/src/modules/connections/messages/TrustPingResponseMessage.ts
TypeScript
InterfaceDeclaration
export interface ISurveyQuestion { number: number; question: string; type: questionType; images: string[]; }
MCHAMOUXCAPG/TeamSpirit
client/React/src/models/interfaces.ts
TypeScript
InterfaceDeclaration
export interface IQuestionStatus { status?: string; valid: boolean; touched: boolean; }
MCHAMOUXCAPG/TeamSpirit
client/React/src/models/interfaces.ts
TypeScript
InterfaceDeclaration
export interface IQuestionResponse { note: number; number: number; surveyCode: string; User: string | null; }
MCHAMOUXCAPG/TeamSpirit
client/React/src/models/interfaces.ts
TypeScript
InterfaceDeclaration
export interface IValidationCode { code: string; User: string | null; }
MCHAMOUXCAPG/TeamSpirit
client/React/src/models/interfaces.ts
TypeScript
InterfaceDeclaration
export interface ICurrentSurveyResult { Period: { StartDate: string; EndDate: string; }; Completed: string; CurrentResult: number; HistoricResult: number; }
MCHAMOUXCAPG/TeamSpirit
client/React/src/models/interfaces.ts
TypeScript
InterfaceDeclaration
export interface IValidationUser { Email: string; Password: string; }
MCHAMOUXCAPG/TeamSpirit
client/React/src/models/interfaces.ts
TypeScript
InterfaceDeclaration
export interface IResultsByUsers { Average: number; Notes: { Number: number; Note: number; SurveyCode: string }[]; User: string; }
MCHAMOUXCAPG/TeamSpirit
client/React/src/models/interfaces.ts
TypeScript
InterfaceDeclaration
export interface IResultsByQuestions { Average: number; Notes: { Note: number; User: string }[]; QuestionNumber: number; }
MCHAMOUXCAPG/TeamSpirit
client/React/src/models/interfaces.ts
TypeScript
InterfaceDeclaration
export interface ITeam { Frequency: number; Name: string; //TeamName Num_mumbers: number; StartDate: string; // format "2number2number-number1-31" }
MCHAMOUXCAPG/TeamSpirit
client/React/src/models/interfaces.ts
TypeScript
InterfaceDeclaration
export interface ITeamDTO { Frequency: number; Name: string; //TeamName Num_mumbers: number; StartDate: string; // format "2number2number-number1-31" Surveys?: any; Users?: any; }
MCHAMOUXCAPG/TeamSpirit
client/React/src/models/interfaces.ts
TypeScript
InterfaceDeclaration
export interface IRoleDTO { Id?: number; Name: string; UserID?: number; }
MCHAMOUXCAPG/TeamSpirit
client/React/src/models/interfaces.ts
TypeScript
InterfaceDeclaration
export interface IUser { Id: number; Full_name: string; Email: string; Password: string; Role: IRole; Teams: ITeamDTO[]; }
MCHAMOUXCAPG/TeamSpirit
client/React/src/models/interfaces.ts
TypeScript
InterfaceDeclaration
export interface IUserDTO { Id?: number; Full_name: string; Email: string; Password: string; Role: IRole; Teams: ITeamDTO[]; }
MCHAMOUXCAPG/TeamSpirit
client/React/src/models/interfaces.ts
TypeScript
InterfaceDeclaration
export interface IUserTable { columns: Array<Column<IUserData>>; }
MCHAMOUXCAPG/TeamSpirit
client/React/src/models/interfaces.ts
TypeScript
InterfaceDeclaration
export interface IUserData { Id: number; Full_name: string; Email: string; Password?: string; Role: string; Teams: string; tableData?: { id: number }; }
MCHAMOUXCAPG/TeamSpirit
client/React/src/models/interfaces.ts
TypeScript
InterfaceDeclaration
export interface ITeamTable { columns: Array<Column<ITeamData>>; }
MCHAMOUXCAPG/TeamSpirit
client/React/src/models/interfaces.ts
TypeScript
InterfaceDeclaration
export interface ITeamData { Frequency: number; Name: string; //TeamName Num_mumbers: number; StartDate: string; // format "2number2number-number1-31" tableData?: { id: number }; }
MCHAMOUXCAPG/TeamSpirit
client/React/src/models/interfaces.ts
TypeScript
InterfaceDeclaration
export interface IRole { Id: number; Name: string; }
MCHAMOUXCAPG/TeamSpirit
client/React/src/models/interfaces.ts
TypeScript
InterfaceDeclaration
export interface IHistoric { endDate: string; startDate: string; totalAverage: number; }
MCHAMOUXCAPG/TeamSpirit
client/React/src/models/interfaces.ts
TypeScript
EnumDeclaration
export enum questionType { slider, fiveIcons, twoIcons, stars, }
MCHAMOUXCAPG/TeamSpirit
client/React/src/models/interfaces.ts
TypeScript
ArrowFunction
(monthIndex: number) => { return monthIndex + this.firstMonthOfYear; }
kpravesh/powerbi-visuals-timeline
src/calendar.ts
TypeScript
ClassDeclaration
export class Calendar { private static QuarterFirstMonths: number[] = [0, 3, 6, 9]; private firstDayOfWeek: number; private firstMonthOfYear: number; private firstDayOfYear: number; private dateOfFirstWeek: DateDictionary; private dateOfFirstFullWeek: DateDictionary; private quarterFirstMonths: number[]; private isDaySelection: boolean; public getFirstDayOfWeek(): number { return this.firstDayOfWeek; } public getFirstMonthOfYear(): number { return this.firstMonthOfYear; } public getFirstDayOfYear(): number { return this.firstDayOfYear; } public getNextDate(date: Date): Date { return TimelineGranularityData.nextDay(date); } public getWeekPeriod(date: Date): PeriodDates { const year: number = date.getFullYear(); const month: number = date.getMonth(); const dayOfWeek: number = date.getDay(); let weekDay = this.isDaySelection ? this.firstDayOfWeek : new Date(year, this.firstMonthOfYear, this.firstDayOfYear).getDay(); let deltaDays: number = 0; if (weekDay !== dayOfWeek) { deltaDays = dayOfWeek - weekDay; } if (deltaDays < 0) { deltaDays = 7 + deltaDays; } const daysToWeekEnd = (7 - deltaDays); const startDate = new Date(year, month, date.getDate() - deltaDays); const endDate = new Date(year, month, date.getDate() + daysToWeekEnd); return { startDate, endDate }; } public getQuarterIndex(date: Date): number { return Math.floor(date.getMonth() / 3); } public getQuarterStartDate(year: number, quarterIndex: number): Date { return new Date(year, this.quarterFirstMonths[quarterIndex], this.firstDayOfYear); } public getQuarterEndDate(date: Date): Date { return new Date(date.getFullYear(), date.getMonth() + 3, this.firstDayOfYear); } public getQuarterPeriod(date: Date): PeriodDates { const quarterIndex = this.getQuarterIndex(date); let startDate: Date = this.getQuarterStartDate(date.getFullYear(), quarterIndex); let endDate: Date = this.getQuarterEndDate(startDate); return { startDate, endDate }; } public getMonthPeriod(date: Date): PeriodDates { const year: number = date.getFullYear(); const month: number = date.getMonth(); let startDate: Date = new Date(year, month, this.firstDayOfYear); let endDate: Date = new Date(year, month + 1, this.firstDayOfYear); return { startDate, endDate }; } public getYearPeriod(date: Date): PeriodDates { const year: number = date.getFullYear(); let startDate: Date = new Date(year, this.firstMonthOfYear, this.firstDayOfYear); let endDate: Date = new Date(year + 1, this.firstMonthOfYear, this.firstDayOfYear); return { startDate, endDate }; } public isChanged( calendarSettings: CalendarSettings, weekDaySettings: WeekDaySettings): boolean { return this.firstMonthOfYear !== calendarSettings.month || this.firstDayOfYear !== calendarSettings.day || this.firstDayOfWeek !== weekDaySettings.day; } constructor( calendarFormat: CalendarSettings, weekDaySettings: WeekDaySettings) { this.isDaySelection = weekDaySettings.daySelection; this.firstDayOfWeek = weekDaySettings.day; this.firstMonthOfYear = calendarFormat.month; this.firstDayOfYear = calendarFormat.day; this.dateOfFirstWeek = {}; this.dateOfFirstFullWeek = {}; this.quarterFirstMonths = Calendar.QuarterFirstMonths.map((monthIndex: number) => { return monthIndex + this.firstMonthOfYear; }); } private calculateDateOfFirstFullWeek(year: number): Date { let date: Date = new Date(year, this.firstMonthOfYear, this.firstDayOfYear); let weekDay = this.isDaySelection ? this.firstDayOfWeek : new Date(year, this.firstMonthOfYear, this.firstDayOfYear).getDay(); while (date.getDay() !== weekDay) { date = TimelineGranularityData.nextDay(date); } return date; } public getDateOfFirstWeek(year: number): Date { if (!this.dateOfFirstWeek[year]) { this.dateOfFirstWeek[year] = new Date(year, this.firstMonthOfYear, this.firstDayOfYear); } return this.dateOfFirstWeek[year]; } public getDateOfFirstFullWeek(year: number): Date { if (!this.dateOfFirstFullWeek[year]) { this.dateOfFirstFullWeek[year] = this.calculateDateOfFirstFullWeek(year); } return this.dateOfFirstFullWeek[year]; } }
kpravesh/powerbi-visuals-timeline
src/calendar.ts
TypeScript
InterfaceDeclaration
interface DateDictionary { [year: number]: Date; }
kpravesh/powerbi-visuals-timeline
src/calendar.ts
TypeScript
InterfaceDeclaration
export interface PeriodDates { startDate: Date; endDate: Date; }
kpravesh/powerbi-visuals-timeline
src/calendar.ts
TypeScript
MethodDeclaration
public getFirstDayOfWeek(): number { return this.firstDayOfWeek; }
kpravesh/powerbi-visuals-timeline
src/calendar.ts
TypeScript
MethodDeclaration
public getFirstMonthOfYear(): number { return this.firstMonthOfYear; }
kpravesh/powerbi-visuals-timeline
src/calendar.ts
TypeScript
MethodDeclaration
public getFirstDayOfYear(): number { return this.firstDayOfYear; }
kpravesh/powerbi-visuals-timeline
src/calendar.ts
TypeScript
MethodDeclaration
public getNextDate(date: Date): Date { return TimelineGranularityData.nextDay(date); }
kpravesh/powerbi-visuals-timeline
src/calendar.ts
TypeScript
MethodDeclaration
public getWeekPeriod(date: Date): PeriodDates { const year: number = date.getFullYear(); const month: number = date.getMonth(); const dayOfWeek: number = date.getDay(); let weekDay = this.isDaySelection ? this.firstDayOfWeek : new Date(year, this.firstMonthOfYear, this.firstDayOfYear).getDay(); let deltaDays: number = 0; if (weekDay !== dayOfWeek) { deltaDays = dayOfWeek - weekDay; } if (deltaDays < 0) { deltaDays = 7 + deltaDays; } const daysToWeekEnd = (7 - deltaDays); const startDate = new Date(year, month, date.getDate() - deltaDays); const endDate = new Date(year, month, date.getDate() + daysToWeekEnd); return { startDate, endDate }; }
kpravesh/powerbi-visuals-timeline
src/calendar.ts
TypeScript
MethodDeclaration
public getQuarterIndex(date: Date): number { return Math.floor(date.getMonth() / 3); }
kpravesh/powerbi-visuals-timeline
src/calendar.ts
TypeScript
MethodDeclaration
public getQuarterStartDate(year: number, quarterIndex: number): Date { return new Date(year, this.quarterFirstMonths[quarterIndex], this.firstDayOfYear); }
kpravesh/powerbi-visuals-timeline
src/calendar.ts
TypeScript
MethodDeclaration
public getQuarterEndDate(date: Date): Date { return new Date(date.getFullYear(), date.getMonth() + 3, this.firstDayOfYear); }
kpravesh/powerbi-visuals-timeline
src/calendar.ts
TypeScript
MethodDeclaration
public getQuarterPeriod(date: Date): PeriodDates { const quarterIndex = this.getQuarterIndex(date); let startDate: Date = this.getQuarterStartDate(date.getFullYear(), quarterIndex); let endDate: Date = this.getQuarterEndDate(startDate); return { startDate, endDate }; }
kpravesh/powerbi-visuals-timeline
src/calendar.ts
TypeScript
MethodDeclaration
public getMonthPeriod(date: Date): PeriodDates { const year: number = date.getFullYear(); const month: number = date.getMonth(); let startDate: Date = new Date(year, month, this.firstDayOfYear); let endDate: Date = new Date(year, month + 1, this.firstDayOfYear); return { startDate, endDate }; }
kpravesh/powerbi-visuals-timeline
src/calendar.ts
TypeScript
MethodDeclaration
public getYearPeriod(date: Date): PeriodDates { const year: number = date.getFullYear(); let startDate: Date = new Date(year, this.firstMonthOfYear, this.firstDayOfYear); let endDate: Date = new Date(year + 1, this.firstMonthOfYear, this.firstDayOfYear); return { startDate, endDate }; }
kpravesh/powerbi-visuals-timeline
src/calendar.ts
TypeScript
MethodDeclaration
public isChanged( calendarSettings: CalendarSettings, weekDaySettings: WeekDaySettings): boolean { return this.firstMonthOfYear !== calendarSettings.month || this.firstDayOfYear !== calendarSettings.day || this.firstDayOfWeek !== weekDaySettings.day; }
kpravesh/powerbi-visuals-timeline
src/calendar.ts
TypeScript
MethodDeclaration
private calculateDateOfFirstFullWeek(year: number): Date { let date: Date = new Date(year, this.firstMonthOfYear, this.firstDayOfYear); let weekDay = this.isDaySelection ? this.firstDayOfWeek : new Date(year, this.firstMonthOfYear, this.firstDayOfYear).getDay(); while (date.getDay() !== weekDay) { date = TimelineGranularityData.nextDay(date); } return date; }
kpravesh/powerbi-visuals-timeline
src/calendar.ts
TypeScript
MethodDeclaration
public getDateOfFirstWeek(year: number): Date { if (!this.dateOfFirstWeek[year]) { this.dateOfFirstWeek[year] = new Date(year, this.firstMonthOfYear, this.firstDayOfYear); } return this.dateOfFirstWeek[year]; }
kpravesh/powerbi-visuals-timeline
src/calendar.ts
TypeScript
MethodDeclaration
public getDateOfFirstFullWeek(year: number): Date { if (!this.dateOfFirstFullWeek[year]) { this.dateOfFirstFullWeek[year] = this.calculateDateOfFirstFullWeek(year); } return this.dateOfFirstFullWeek[year]; }
kpravesh/powerbi-visuals-timeline
src/calendar.ts
TypeScript
ArrowFunction
(props: IconDesktopProps) => { const iconProps = useIcon(props); return <Box component={IconDesktopSvg} {...iconProps} />; }
PedroCampana/braid-design-system
lib/components/icons/IconDesktop/IconDesktop.tsx
TypeScript
TypeAliasDeclaration
export type IconDesktopProps = UseIconProps;
PedroCampana/braid-design-system
lib/components/icons/IconDesktop/IconDesktop.tsx
TypeScript
InterfaceDeclaration
/** * 请求参数 */ export interface Request { /** * 商品条形码编码 */ code?: string; /** * 商品类型 */ item_type?: number; }
nest-mods/youzan
model/item_standard/item-standard-get.d.ts
TypeScript
InterfaceDeclaration
/** * 响应参数 */ export interface Response { /** * 商品标准详情信息 */ item_standard?: ItemStandardOpenModel; }
nest-mods/youzan
model/item_standard/item-standard-get.d.ts
TypeScript
InterfaceDeclaration
/** * 商品标准详情信息 */ export interface ItemStandardOpenModel { /** * 条形码编码 */ code?: string; /** * 商品类型 */ item_type?: string; /** * 价格, 单位为分 */ price?: number; /** * 图片,格式为JSON,如下 * [{"width":320,"id":"20177","url":"http://img.yzcdn.cn/upload_files/2017/07/11/FjM2RwUUXEvcEr6lEyyeH9E_C8rZ.jpg","height":320},{"width":790,"id":"20178","url":"http://img.yzcdn.cn/upload_files/2017/07/11/FlkOmdespJXZg70D40LDODCw51Um.jpg","height":955},{"width":790,"id":"20179","url":"ht */ imgs?: string; /** * 商品SPU标准模型 */ spu?: ItemStandardSpuOpenModel; /** * 商品标准扩展信息模型 */ extra_info?: ItemStandardExtraOpenModel[]; }
nest-mods/youzan
model/item_standard/item-standard-get.d.ts
TypeScript
InterfaceDeclaration
/** * 商品SPU标准模型 */ export interface ItemStandardSpuOpenModel { /** * 厂商 */ manu_name?: string; /** * 商品名称 */ item_name?: string; /** * 商标/品牌 */ brand?: string; /** * 有效期 */ valid_period?: string; }
nest-mods/youzan
model/item_standard/item-standard-get.d.ts
TypeScript
InterfaceDeclaration
/** * 商品标准扩展信息模型 */ export interface ItemStandardExtraOpenModel { /** * 扩展信息键ID */ kid?: number; /** * 扩展信息键名称 */ attr_key?: string; /** * 扩展信息值 */ attr_value?: string; }
nest-mods/youzan
model/item_standard/item-standard-get.d.ts
TypeScript
ArrowFunction
(theme) => ({ root: (props: ChromatinIcon) => ({ height: props.height ?? '100%', width: props.width ?? '100%', ...getThemeCSSObject(props?.csx?.root, theme), }), })
intermine/chromatin
src/icons/Map/restaurant-2-line.tsx
TypeScript
ArrowFunction
(props: ChromatinIcon) => ({ height: props.height ?? '100%', width: props.width ?? '100%', ...getThemeCSSObject(props?.csx?.root, theme), })
intermine/chromatin
src/icons/Map/restaurant-2-line.tsx
TypeScript
ArrowFunction
(props, ref): JSX.Element => { const { className, classes: _classes = {}, csx = {}, ...rest } = props const classes = useStyles({ className, classes: _classes, csx, ...rest }) return ( <svg className={cx(classes.root, _classes.root, className
intermine/chromatin
src/icons/Map/restaurant-2-line.tsx
TypeScript
MethodDeclaration
cx(classes
intermine/chromatin
src/icons/Map/restaurant-2-line.tsx
TypeScript
ArrowFunction
() => T.unit
Liubyvyi/matechs-effect
packages/core/src/next/Managed/managed.ts
TypeScript
ClassDeclaration
export class Managed<S, R, E, A> { readonly [T._U]: ManagedURI; readonly [T._S]: () => S; readonly [T._E]: () => E; readonly [T._A]: () => A; readonly [T._R]: (_: R) => void constructor(readonly effect: T.AsyncRE<[R, ReleaseMap], E, [FinalizerT<E>, A]>) {} }
Liubyvyi/matechs-effect
packages/core/src/next/Managed/managed.ts
TypeScript
InterfaceDeclaration
interface MaToKind<S, R, E, A> { [ManagedURI]: Managed<S, R, E, A> }
Liubyvyi/matechs-effect
packages/core/src/next/Managed/managed.ts
TypeScript