blob_id large_stringlengths 40 40 | language large_stringclasses 1
value | repo_name large_stringlengths 5 119 | path large_stringlengths 4 271 | score float64 2.52 4.84 | int_score int64 3 5 | text stringlengths 26 4.09M |
|---|---|---|---|---|---|---|
ac4cb5d5131cfd826d70985fc8086e2012a23efc | TypeScript | sangecz/swagger-angular-generator | /src/generate.ts | 2.671875 | 3 | /** Generator of API models (interfaces) from BE API json */
import * as fs from 'fs';
import * as conf from './conf';
import {processDefinitions} from './definitions';
import {processPaths} from './requests/process-paths';
import {out, processHeader} from './utils';
export interface Config {
header: string;
dest... |
d876843f2d98ab4795aa84e680aef54eb1e32119 | TypeScript | sgnatonski/tortitle | /tortitle/backend/torrent.ts | 2.703125 | 3 | import { ISubtitle } from "./subtitle";
export interface ITorrent {
name: string;
torrentLink: string;
magnetLink: string;
magnetLink64: string;
imdbId: string;
quality: string;
files: ITorrentFile[];
subtitle: ISubtitle;
addedAt: Date;
isNew: boolean;
isStreamable: boolean... |
d2c8ef488781aa18d08cf312d5ad2162ef99b96d | TypeScript | anthonny/domifa | /packages/frontend/src/app/shared/store/usagersSearchCache.service.spec.ts | 2.796875 | 3 | import { UsagerLight } from "../../../_common/model";
import { usagersSearchCache } from "./usagersSearchCache.service";
const initialState: Partial<UsagerLight>[] = [
{
uuid: "1",
prenom: "John",
nom: "Smith",
},
{
uuid: "2",
prenom: "Marie",
nom: "Smith",
},
{
uuid: "3",
pre... |
661aeadaec0feb66ec642a313ac4af3783765b87 | TypeScript | darshgun/atlaskit | /build/utils/guards.ts | 3.1875 | 3 | /** Typescript type guards */
/* A simple defined check with type guard that works well with Array.prototype.filter */
export function isDefined<T>(arg: T | undefined | null): arg is T {
return arg != null;
}
|
4f3cc9c9784981b97196b2a3e3e6d3beea7ac8d3 | TypeScript | andrey0902/project_firebase | /src/app/users/user-list/ExampleDataSource.ts | 2.515625 | 3 | import { Observable } from 'rxjs/Observable';
import { DataSource } from '@angular/cdk/collections';
export class ExampleDataSource extends DataSource<any> {
public users;
/** Connect function called by the table to retrieve one stream containing the data to render. */
constructor(users: any) {
super();
... |
e433e8645e947c3c4c64d794f50fc8b9f24c5b15 | TypeScript | jacoubbondre/QualifierCMS | /app/pipes/encodeClassName.pipe.ts | 2.53125 | 3 | import {Pipe, PipeTransform, Injectable} from '@angular/core'
@Pipe({
name: 'encodeClassName'
})
@Injectable()
export class EncodeClassNamePipe implements PipeTransform {
transform(item:string) {
return item.replace(/ /g, '-').replace(/[^\w\s]/g, '').toLowerCase()
}
} |
c59d02237dbb5c7858fb875b01c601a14697da18 | TypeScript | ARedondoVilla/GifsApp | /src/app/gifs/busqueda/busqueda.component.ts | 2.609375 | 3 | import { Component, ElementRef, ViewChild } from '@angular/core';
import { GifsService } from '../services/gifs.service';
@Component({
selector: 'app-busqueda',
templateUrl: './busqueda.component.html',
styles: [
]
})
export class BusquedaComponent {
@ViewChild('txtBuscar') txtBuscar!: ElementRef<HTMLInputE... |
5b9c4a5460022f73a940663c8412d8f7d8d861f9 | TypeScript | andrewthauer/ts-monorepo | /packages/core/src/index.ts | 2.921875 | 3 | export const map = <T, O>(iteratee: (i: T) => O, data: T[]): O[] =>
data.map((i: T) => iteratee(i));
|
c313558af0ce8ad14d07915f775370e806467db1 | TypeScript | var-bin/ng-events | /src/app/events/shared/duration.pipe.ts | 2.875 | 3 | import {
Pipe,
PipeTransform,
} from "@angular/core";
@Pipe({
name: "duration",
})
export class DurationPipe implements PipeTransform {
transform(value: number): string {
const durations = {
1: "Half Hour",
2: "1 Hour",
3: "Half Day",
4: "Full Day",
defaultValue: value.toStri... |
ddd07ea82b12a6c46acb6f7cc279a883083b4607 | TypeScript | DaniloFnds/TimerWork | /src/app/timer/timer.component.ts | 2.515625 | 3 | import { Timer } from './../shared/models/timer';
import { TimerService } from './services/timer.service';
import { Component, OnInit } from '@angular/core';
import { Observable, interval, Subscription } from 'rxjs';
import { map } from 'rxjs/operators'
import * as moment from 'moment';
import 'moment/locale/pt-br';
... |
60b37527979e51278333d66ca37d3fb259f82b13 | TypeScript | KazumasaYasui/riakuto3.1 | /04-typescript/05-advanced/index-access.ts | 2.5625 | 3 | {
const permissions = {
r: 0b100 as const,
w: 0b010 as const,
x: 0b001 as const,
};
type PermsChar = keyof typeof permissions;
type PermsNum = typeof permissions[PermsChar];
const readable: PermsNum = 4;
// const writeable: PermsNum = 99;
console.log(readable);
}
|
70fb65697915de9e9a91050f72ec7f90b3482bb0 | TypeScript | bobbyhiom/AtariJam | /src/entity/scene.ts | 2.625 | 3 | export class Scene extends Entity {
static MODEL: string = "models/Scene.gltf"
gltfShape: GLTFShape
direction: Vector3 = Vector3.Right()
constructor(x: number, y: number, z: number, scale: number, rotation: number) {
super()
this.gltfShape = new GLTFShape(Scene.MODEL)
this.ad... |
5546d4b95446b990d857037790336b4f5bb26e13 | TypeScript | ezekielchentnik/fuco | /src/fuco/define-element.ts | 2.53125 | 3 | import { render } from "../html";
import { isBrowser } from "./env";
import { adoptCssStyle, HasCSSSymbol } from "./css";
import { Component, AttributeConverter } from "./component";
import { __scope__, defaultHooks, EffectFn } from "./hook";
import {
enqueueEffects,
enqueueLayoutEffects,
enqueueUpdate
} from "./... |
3f9ef34b91043a7544e2e183d22cb329ad4bb26e | TypeScript | derv82/ion-js | /src/IonLongInt.ts | 3.125 | 3 | /*
* Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at:
*
* http://aws.amazon.com/apache2.0/
*
* or in the ... |
db9bc0474861a9e620766c638cb1ac00703f2dea | TypeScript | mzx/angular-mhthhc | /src/app/tree1/models.ts | 2.6875 | 3 | export type ValueOf<T> = T[keyof T];
export type Data = {id: string, widget: WidgetsEnumType, children: Data[], value: any}; // TODO
export class TreeNode<D> {
data: D;
children: TreeNode<D>[];
}
export class FlatTreeNode<D> extends TreeNode<D> {
level: number;
expandable: boolean;
}
export const WidgetsEnum... |
8fb21c8078f41a68523766e12bdc68aee58af89a | TypeScript | mratmartinez/ese-pedidos | /client/src/shared/environment.service.ts | 2.640625 | 3 | import { Injectable } from '@angular/core';
import { HttpHeaders, HttpErrorResponse } from '@angular/common/http';
import { ToastController } from 'ionic-angular';
@Injectable()
export class EnvironmentService {
private token: string;
private static readonly ip: string = "127.0.0.1"
private static readonl... |
b497706df04e7cd6486cb62f2896b3ee1abaa282 | TypeScript | GeVa2072/ng6-go | /client/src/app/shared/services/user.service.ts | 2.53125 | 3 | import {Injectable} from '@angular/core';
import {BehaviorSubject, Observable} from "rxjs";
import {NamespaceService} from "./namespace.service";
import {filter, take} from "rxjs/operators";
@Injectable({
providedIn: 'root'
})
export class UserService {
private usernameSource = new BehaviorSubject<string>(nul... |
dcf054de441bb27908f9abb45a253f0c776bebe6 | TypeScript | PScottZero/MNISTPlayground | /image-generator-experiment/src/app/classes/NeuralNetwork.ts | 2.71875 | 3 | import { Layer } from './Layer';
import { math } from './mathjs';
export class NeuralNetwork {
size: number[];
layers: Layer[];
epochCount: number;
eta: number;
accuracy: number;
constructor(size: number[], epochCount: number, eta: number) {
this.configureNetwork(size);
this.size = size;
this.... |
7dc1674093785081b3b990e12c1b86f10ad046db | TypeScript | Polvista/ng2-seed | /app/store/mutations/ProxyMutationManager.ts | 2.59375 | 3 | import {MutationManager} from "./MutationManager";
import {AppState} from "../AppState";
import {Immutable} from "./MutationManager";
export class ProxyMutationManager extends MutationManager {
protected enhanceMutableObject(mutableObject: any, origObject: any, path: string[]): any {
return new Proxy(mut... |
a83c8205bbb42a99b46f6f2e8d63b176603d021a | TypeScript | ErickSaito/ecommerce | /backend/src/middlewares/Handler.ts | 2.515625 | 3 | import axios from 'axios';
import { Options } from './Types';
export const CLIENT_TIMEOUT = 5 * 60 * 1000;
export const axiosClient = (baseURL?: string, options?: Options) => {
if (!options?.axiosInstance) {
return axios.create({
baseURL,
timeout: CLIENT_TIMEOUT,
withCredentials: true,
.... |
48857f739ee9a221210c7030a738de1c7d637509 | TypeScript | lhcopetti/AlgebraicNotationChess | /src/chess/core/ChessSquare.ts | 3.609375 | 4 | class ChessSquare {
private _file: string;
private _rank: string;
private constructor(file: string, rank: string) {
this._file = file;
this._rank = rank;
}
public static fromString(square: string) {
const file = square[0];
const rank = Number(square[1]);
i... |
4b38a225a155524330a9bbcc66f4d408ce97a8dc | TypeScript | kubarozycki/conecta | /AngularClient/webApp/src/app/pipes/height.pipe.ts | 2.53125 | 3 | import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'height'
})
export class HeightPipe implements PipeTransform {
readonly Unit:string;
constructor(){
this.Unit="cm"
}
transform(value: any, args?: any): any {
return `${value} ${this.Unit}`;
}
}
|
40c98926e9b12ca4620d8c8d4cd838147127a8bb | TypeScript | skydy/angular | /src/app/components/news/news.component.ts | 2.71875 | 3 | /* 引入核心模块里面的Component */
import { Component, OnInit } from '@angular/core';
//引入并且配置服务
import { StorageService } from '../../services/storage.service'
// 不推荐
// var storage =new StorageService();
// console.log(storage)
// 请求服务
import { HttpClient,HttpHeaders } from '@angular/common/http';
import { ActivatedRoute } fro... |
80075f565227bd33b7216167ab410318a34c0536 | TypeScript | pilpod/FactoriaF5-CRUD-ApiMovies-Frontend | /src/ts/Domain/Services/MovieController.ts | 2.640625 | 3 | ///<reference path="../Models/Movie.ts" />
///<reference path="../Contracts/IApiService.ts" />
///<reference path="../../Infrastructure/Api/Api.ts" />
namespace Controller {
export class MovieController implements Contract.ExternalApiData {
tmdb:Api.ApiMovie;
constructor(tmdb:Api.ApiMovie)
... |
7c77c40c750932ee4fc09c639549516e6cfc48bb | TypeScript | san-nat/prime-simplereport | /frontend/src/app/admin/Organization/facilityAdminSchema.ts | 2.90625 | 3 | import * as yup from "yup";
type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
type RequiredAdminFields = PartialBy<FacilityAdmin, "middleName" | "suffix">;
export const facilityAdminSchema: yup.SchemaOf<RequiredAdminFields> = yup.object(
{
firstName: yup.string().required(),
middleNa... |
11fa98d37bc113770b12b557e118abbe8d6c9a3e | TypeScript | heuristicAL/fullstack-ts-react-nest | /shared/entities/entityBase.ts | 3.359375 | 3 | import { CreateDateColumn, PrimaryGeneratedColumn, UpdateDateColumn, VersionColumn } from 'typeorm';
/**
* Abstract class to define the base fields and columns for an Entity.
* @param T The type of the child class inheriting from {@link BaseEntity}
*/
export abstract class EntityBase<T> {
@PrimaryGeneratedColu... |
2d7c586dfa808e90b009cefd740b77acd6f385db | TypeScript | jayarjo/jamp3 | /src/lib/common/stream-writer.ts | 3 | 3 | import fs from 'fs';
import {BufferUtils} from './buffer';
import {synchsafe, unbitarray} from './utils';
import {ascii, IEncoding} from './encodings';
const MemoryStream = require('memory-stream'); // TODO: type Memorystream
export class WriterStream {
protected wstream: fs.WriteStream;
constructor() {
this.wst... |
af3ddea76227d3f0e34748747aadc6c0a15953a7 | TypeScript | Nekor4/type-engine | /src/engine/core/engine.ts | 2.859375 | 3 | import { GameObject } from "./game-object";
import { Collision } from "../colliders";
export class Engine {
private _canvas: HTMLCanvasElement;
private inGameObjects: Array<GameObject> = [];
private isPauzed = false;
public static ctx: CanvasRenderingContext2D;
/** Creates new canvas element on co... |
926ce51813fb764f418fffd607691b38b2724071 | TypeScript | JeniTurtle/typeorm-graphql | /example/lib/singleProgressTask.ts | 2.53125 | 3 | import * as path from 'path';
import * as is from 'is-type-of';
import { Application } from 'egg';
import { Container } from 'typedi';
export const startTask = (app: Application) => {
// 加载单进程任务文件夹
const taskDir = path.join(app.config.baseDir, 'app/task');
app.loader.loadToApp(taskDir, 'task');
// @ts-ignore
... |
f81ca0bc0f1d7b2e42df32e9cc347b858af13558 | TypeScript | csstools/postcss-plugins | /plugins/postcss-pseudo-class-any-link/src/replace-any-link.ts | 2.671875 | 3 | import type { Result, Rule } from 'postcss';
import parser from 'postcss-selector-parser';
const linkAST = parser().astSync(':link').nodes[0];
const visitedAST = parser().astSync(':visited').nodes[0];
const areaHrefAST = parser().astSync('area[href]').nodes[0];
const hrefAST = parser().astSync('[href]').nodes[0];
exp... |
9c0d425075aeb92d46081eef19600403c1f74992 | TypeScript | prajgit/reactjsexp | /src/store/customer-reducer.ts | 2.90625 | 3 | import { CustomerStoreModel } from './store-models/customer-model';
import { Action } from '../types/common';
const defaultData = {} as CustomerStoreModel;
//action creators name
export const GET_CUSTOMER_INFO = 'customer/GET_CUSTOMER_INFO';
export const CLEAR_CUSTOMER_INFO = 'customer/CLEAR_CUSTOMER_INFO';
export d... |
bee6c0242bee730f5d75b4a9df4e72829ff49a08 | TypeScript | ragu-framework/ragu-client-node | /src/adapters/axios.ts | 2.515625 | 3 | import {RequestAdapter, Request} from "../client";
import {ComponentResponse} from "../ragu-component";
import axios, {AxiosResponse, CancelTokenSource} from 'axios';
class AxiosRequest implements Request {
private readonly response: Promise<AxiosResponse<ComponentResponse>>;
private cancelToken: CancelTokenSource... |
e376e49d02c911543c2c3183b6694f9744ab94c5 | TypeScript | krsakai/docker_pappeteer_sample | /functions/src/models/hitter_score.ts | 2.625 | 3 | import { JSON, JsonObject, JsonProperty } from "ta-json";
@JsonObject()
export class HitterScore {
/// 年
@JsonProperty('year')
year: string;
/// 打率
@JsonProperty('avg')
avg: string;
/// 試合数
@JsonProperty('games')
games: string;
/// 打数
@JsonProperty('atBat')
atBat: string;
/// 得点
@JsonPr... |
e83246acd9faba4f244e54b87df210c659fc95f2 | TypeScript | simotae14/DenoExercises | /12-query-for-a-permission/app.ts | 2.765625 | 3 | const desc = {
name: "read",
path: "../"
} as const;
// query for a permission
console.log(await Deno.permissions.query(desc));
// request permission
const status = await Deno.permissions.request(desc);
// query for a permission
console.log(await Deno.permissions.query(desc));
if (status.state === "granted") {
... |
c704db0b6ee20b35fb3275bd71d9809c420ae8cb | TypeScript | AndelasOne/Open-Web-Chat | /server/src/messages.ts | 2.828125 | 3 | import { RequestHandler } from "express";
import { MessageSchema, IMessageDocument, IMessage } from "./types";
import { model, Model } from "mongoose";
// Create Message Model for one Room
const messageModel: Model<IMessageDocument> = model(
"message",
MessageSchema,
"messages"
);
// Get messages
const getMessa... |
db3ada578d3948b8de3dc7f43cb03fc12e9edb23 | TypeScript | pvSource/soda_shurup | /PepsiFactory.ts | 2.5625 | 3 | class PepsiFactory implements SodaFactory {
//Override
public createBottle(): Bottle {
return new PepsiBottle();
}
//Override
public createSoda(): Soda {
return new PepsiSoda();
}
//Override
public createLabel(): Label {
return new PepsiLabel();
}
//Ove... |
852d0bbef3cef2b515aea6698a706e0b4f9871f4 | TypeScript | NewGyu/SegaPuyoPuyo | /test/StageEvent.test.ts | 2.515625 | 3 | import { StageEventObserver } from "~/models/StageEvent"
import { sleep } from "./testutil";
import { FallingPuyoPuyo } from "~/models/Puyo";
describe("StageEvent", () => {
const observer = new StageEventObserver();
it("can fire started event", async () => {
//given
const spy = jest.fn();
observer.on(... |
37e5ccc261235bbe357331cf2d1e3fe596b56d10 | TypeScript | appellation/axios-ratelimiter | /src/index.ts | 2.65625 | 3 | import { AxiosAdapter, AxiosRequestConfig, AxiosResponse } from 'axios';
import Bucket from './Bucket';
export interface Headers {
global: string;
reset: string;
limit: string;
remaining: string;
retry: string;
}
export interface Config {
key: (method: string, url: string) => string;
headers: Headers;
}... |
f63d9e4333807f621f339dfad10660f0d0396ae5 | TypeScript | skwon-mdsol/jsalgorithms | /src/HashTable.ts | 3.46875 | 3 | import DoublyLinkedList from './DoublyLinkedList';
interface IHashTable<V> {
table: DoublyLinkedList<DoublyLinkedList<V>>;
modNum: number;
numElements: number;
size(): number;
hash(key: string): number;
}
/*
const hash = hashfunc(key)
const index = hash % length
*/
export default class HashTable<V> im... |
f172feb28edcd4a9e6760c1881a1a1df26db59b0 | TypeScript | source-academy/js-slang | /src/stdlib/list.prelude.ts | 3.984375 | 4 | export const listPrelude = `
// equal computes the structural equality
// over its arguments
function equal(xs, ys) {
return is_pair(xs)
? (is_pair(ys) &&
equal(head(xs), head(ys)) &&
equal(tail(xs), tail(ys)))
: is_null(xs)
? is_null(ys)
: is_number(xs)
? (is_number(ys) && xs === ys)
: is_boole... |
c3b6ef36f50eadf0e5a291a3fdf63c0fe61b9ed9 | TypeScript | cooperhsiung/vesicle | /src/decorator/core.ts | 2.515625 | 3 | import 'reflect-metadata';
import { Server, ServerOptions } from '../server';
const ACTIONS = 'ACTIONS';
const ACTION_MAP = 'ACTION_MAP';
const SERVICE_NAME = 'SERVICE_NAME';
export const Service = (args?: any): ClassDecorator => (target: any) => {};
export const Action = (args?: any): MethodDecorator => (
target:... |
1d5f2fce6fc4591f7efd72a12c554ffe1a8c13b5 | TypeScript | lotooo/terraforming-mars | /src/cards/PowerSupplyConsortium.ts | 3 | 3 |
import { IProjectCard } from "./IProjectCard";
import { Tags } from "./Tags";
import { CardType } from "./CardType";
import { Player } from "../Player";
import { Game } from "../Game";
import { SelectPlayer } from "../inputs/SelectPlayer";
import { Resources } from '../Resources';
export class PowerSupplyConsortium i... |
4d04cf535fb378ad005cdb3aeb24fc706af2086e | TypeScript | bryant-pham/DIP-color-processing-fe | /src/app/reducers/actions/image.action.ts | 2.671875 | 3 | import { Action } from '@ngrx/store';
import { Image } from '../../models/image';
export enum ActionTypes {
SET_IMAGES = '[Image Component] Set Images',
ADD_IMAGE = '[Image Component] Add Image',
SELECT_IMAGE = '[Image Component] Select Image',
}
export interface ActionWithPayload<T> extends Action {
payload:... |
dc80cc3e6e22d70e01fdb25245da55bebefb265e | TypeScript | EmJee1/Blackjack | /src/Player.ts | 3.125 | 3 | import Card from './Card'
class Player {
private playerName: string
private cards: Card[] = []
constructor(playerName: string | number) {
this.playerName = playerName.toString()
}
public drawCard(cardDeck: Card[]) {
const randomIndex = Math.floor(Math.random() * cardDeck.length)
this.cards[
this.cards.... |
c92448f18170b3417a17a433d0d74a2841e5bdca | TypeScript | abhinav1144/aws_angular_pipeline | /dotx-portal-ui/src/app/shared/table/table-filter.pipe.ts | 2.921875 | 3 | import { Pipe, PipeTransform, Injectable } from '@angular/core';
import * as moment from 'moment';
import filter from 'lodash/filter';
@Pipe({
name: 'tFilter',
pure: false
})
@Injectable()
export class TableFilterPipe implements PipeTransform {
/**
* @param items object from array
* @param term term's ... |
d1b0b69f7eb75f1e69b3207fa0edfea137108492 | TypeScript | AlexVestin/wwv | /src/app/shared/period.ts | 3.75 | 4 | /*
* All dates are considered in the local timezone.
*/
/*
* Possible spans of intervals/periods.
*/
export enum PeriodWidth {
POINT,
HOUR,
DAY,
WEEK,
MONTH,
YEAR,
}
export function periodString(period: PeriodWidth): string {
const periods: Map<PeriodWidth, string> = new Map([
[PeriodWidth.POINT... |
68861f8a0f315b94b4bf6ff6865a1540524e84e3 | TypeScript | fatenyahyaoui/SpringProject_Frontend | /src/app/message/messageservice.service.ts | 2.640625 | 3 | import { Injectable } from '@angular/core';
import { Http, Response, Headers, URLSearchParams, RequestOptions } from '@angular/http';
import { Observable } from 'rxjs';
import { Message } from './message';
@Injectable()
export class MessageserviceService {
//URLs for CRUD operations
allMessagesUrl = "http://loc... |
789f1d48c7a17db5708737d045875b71819d96e3 | TypeScript | irla/irla.github.io | /lib/filter.ts | 3.125 | 3 |
export const isNotBlank = (filter?: String): boolean => {
return filter !== undefined && filter.trim().length > 0
}
const equivalents: Map<string, Array<string>> = new Map([
["jms", ["rabbitmq", "activemq"]],
["rmq", ["rabbitmq"]],
["amq", ["activemq"]],
["cloud", ["aws", "gcp"]],
["event", ["... |
9560d525283fa78b212f3160ba3798d70f1b5468 | TypeScript | GitVitor/Vue3-mycoincap | /src/composables/use-promise.ts | 2.828125 | 3 | import { reactive, toRefs } from "vue";
interface State {
loading: boolean;
error: any;
result?: {
data: object;
};
}
export default function usePromise(
fn: (
args?: any
) => Promise<{
data: object;
}>
) {
const state = reactive<State>({
loading: false,
error: null,
result: un... |
2abc2b691c32e8087225ba963093e38beed4cd25 | TypeScript | ederivero/TypeScript-Challenge-Eduardo | /2_medium/8_readOnly.ts | 3.78125 | 4 | interface Todo {
title: string
description: string
completed: boolean
}
type MyReadonly2<T, K extends keyof T = keyof T >={
readonly [U in K]: T[K]
} &{
[N in Exclude<keyof T,K>]: T[N]
}
const todo: MyReadonly2<Todo, 'title' | 'description'> = {
title: "Hey",
description: "foobar",
comp... |
dbd416184d2636196f5ef923c30a7ed40db9bf50 | TypeScript | Kobzol/cuda-profile | /visualization/src/lib/file-load/file.ts | 2.625 | 3 | import {Observable} from 'rxjs/Observable';
import 'rxjs/add/operator/catch';
import 'rxjs/add/operator/do';
import 'rxjs/add/operator/map';
import 'rxjs/add/observable/throw';
import {Metadata} from '../serialization/metadata';
import {readFile} from '../util/fs';
import {createWorkerJob} from '../util/worker';
import... |
548312998527aebb3869bf86cd67afff3000ab7a | TypeScript | D0vid/music-tendency | /src/Models/MessageSenderHelper.ts | 2.828125 | 3 | import { TextChannel, DMChannel, MessageEmbed } from "discord.js";
import { Song } from "./Song";
import { stringify } from "querystring";
const fs = require("fs");
export class MessageSenderHelper{
static readonly header : string = fs.readFileSync("././assets/ascii/header.txt", "ascii");
static rea... |
16bcb42e0d2aaf08c94b46a6641282038ce5fe26 | TypeScript | sveltejs/language-tools | /packages/language-server/src/plugins/typescript/features/utils.ts | 2.53125 | 3 | import ts from 'typescript';
import { Position } from 'vscode-languageserver';
import {
Document,
getLineAtPosition,
getNodeIfIsInComponentStartTag,
isInTag
} from '../../../lib/documents';
import { ComponentInfoProvider, JsOrTsComponentInfoProvider } from '../ComponentInfoProvider';
import { DocumentSn... |
c78ea86217c86eff5735ab419ade385be8e5ddf4 | TypeScript | modo-studio/todogit | /desktop/src/renderer/startup/startup.ts | 2.734375 | 3 | import StartupOperation from "./startup-operation"
import * as operations from "./operations"
export class Startup {
operations: Array<StartupOperation>
constructor(operations: Array<StartupOperation>) {
this.operations = operations
}
execute(): Promise<Array<void>> {
return Promise.all(
this.o... |
6655bd62431597e42ef9553937bb215ba5575cf2 | TypeScript | fossabot/api-7 | /src/services/TwitterUsersService.ts | 2.671875 | 3 | import IServiceFetcher from '../utils/IServiceFetcher'
import ITwitterUsersService from './ITwitterUsersService'
let accessToken: string = null
export default class TwitterUsersService implements ITwitterUsersService {
public static BASE_URL = 'https://api.twitter.com/1.1/users'
public static TOKEN_URL = 'https:/... |
85a1c8dd179ccd772862f4a0d73e477fcd36f1fd | TypeScript | trivikr/smithy-typescript | /packages/types/src/streaming-payload/streaming-blob-payload-input-types.ts | 3.34375 | 3 | import type { Readable } from "stream";
/**
* @public
*
* This union represents a superset of the compatible types you
* can use for streaming payload inputs.
*
* FAQ:
* Why does the type union mix mutually exclusive runtime types, namely
* Node.js and browser types?
*
* There are several reasons:
* 1. For ... |
5f830c27ff0504a4c05ad789f385ded22c6ee4a6 | TypeScript | boomfly/number-to-words-ru | /src/units/numbers.ts | 2.609375 | 3 | import genders from 'src/units/genders';
import {declensions} from 'src/units/declensions';
type DeclensionNumbers = string | {
[key: string]: string,
};
export interface DeclensionNumbersArray {
[key: string]: [
DeclensionNumbers,
DeclensionNumbers,
DeclensionNumbers,
DeclensionNumbers,
Decle... |
a4ad51635c6dd94fadac808937225da7421bc4c4 | TypeScript | igncp/code-gym | /katas/006/ts/index.ts | 3.640625 | 4 | const assert = require("assert");
const swapNumsInArray = (arr: number[], idxA: number, idxB: number): void => {
const tmp = arr[idxA];
arr[idxA] = arr[idxB];
arr[idxB] = tmp;
};
/*
https://en.wikipedia.org/wiki/Insertion_sort
i ← 1
while i < length(A)
j ← i
while j > 0 and A[j-1] > A[j]
swap A... |
7da05a1cd4f7901481b781c548f926752611b181 | TypeScript | clayton-jones/sort | /src/index.ts | 2.953125 | 3 | import { Sorter } from './Sorter';
import { NumbersCollection } from './NumbersCollection';
import { LinkedList } from './LinkedList';
// const numbers = new NumbersCollection([1, 4, -1, -20, 32, 10]);
// const sorter = new Sorter(numbers);
// sorter.sort();
// console.log(numbers.data);
const list = new LinkedList... |
ff76d604081783e4c85157ba09ad222323bb9df1 | TypeScript | Victor-Fiamoncini/my_sorts | /src/quicksort/index.ts | 3.34375 | 3 | import Sort from '@src/Sort'
class QuickSort extends Sort {
sort(array: number[], start = 0, end = array.length): void {
if (start < end) {
const pivot = this.partition(array, start, end)
this.sort(array, start, pivot - 1)
this.sort(array, pivot + 1, end)
}
}
private partition(array: number[], start:... |
fa355d4fb759ac37855c757989ddc1d385405fdd | TypeScript | Gathondu/shopping-cart | /server/src/Schema/types/product.ts | 2.8125 | 3 | import {
GraphQLObjectType,
GraphQLID,
GraphQLString,
GraphQLInt,
} from 'graphql';
import { DateType } from '../scalars';
/** Define the product type object that we will consume in
* graphQl queries and mutations.
*/
// define a product type for typescript
export type product = {
id: number;
name: stri... |
488d9e1e3b3e355f11bff2cad97a2c24940bfe3b | TypeScript | thapakorn604/todoListDemo | /src/core/store/Todo/TodoModule.ts | 2.796875 | 3 | import { AnyAction, Reducer } from 'redux';
import { IModule } from 'redux-dynamic-modules';
import {
TodoAction,
TodoActionType,
TodoModuleState,
TodoState,
} from './../../types';
export const initialState: TodoState = [
{ key: 0, title: 'Practice piano', isDone: false },
{ key: 1, title: 'Listen to TedT... |
4f72645e5a890eed3f69ff22c733cff50c807d79 | TypeScript | TheRusskiy/url-pagination | /src/utils/isPageValid.ts | 2.640625 | 3 | export default function isPageValid(
page: number,
perPage: number,
total?: number
) {
if (page < 0) return false;
if (!total) return true;
const maxPage = Math.ceil(total / perPage) - 1; // 0 indexed
return page <= maxPage;
}
|
3a38770b9701b51d21205731f7f7622388774b05 | TypeScript | turizsolt/der-fahrplan | /test/Geometry/LineSegmentChain.test.ts | 2.53125 | 3 | import chai, { expect } from 'chai';
import chaiAlmost from 'chai-almost';
import { Coordinate } from '../../src/structs/Geometry/Coordinate';
import { Ray } from '../../src/structs/Geometry/Ray';
import { Right } from '../../src/structs/Geometry/Directions';
import { LineSegmentChain } from '../../src/structs/Geometry... |
3065a71d81a920e5248d58a2a86810c4d1b150f3 | TypeScript | acmeframework/af-conditionals | /src/lib/conditionals/is-array.ts | 3.109375 | 3 | import typeDetect from 'type-detect';
import { assert_conditional, Conditional } from './conditional';
import { isUndefinedOrNull } from './is-undefined-or-null';
export class IsArray extends Conditional {
public test(value: any): boolean {
return !isUndefinedOrNull(value) && typeDetect(value) === 'Array';
}
... |
72e2b7b739604d5cc149aeee3691a8f29dffb8b1 | TypeScript | Ainias/js-helper | /dist/Promises/PromiseWithHandlers.d.ts | 2.609375 | 3 | export declare class PromiseWithHandlers<T> extends Promise<T> {
private readonly resolver;
private readonly rejecter;
constructor(executor?: (resolve: (value?: (PromiseLike<T> | T)) => void, reject: (reason?: any) => void) => void);
resolve(value?: (PromiseLike<T> | T)): void;
reject(reason?: any):... |
23f848456d2265a6659dd6460e5982015ec83773 | TypeScript | JakubSzark/little-man-computer | /LMC.ts | 3.3125 | 3 | /*
* Little Man Computer Clone
* Made by: Jakub P. Szarkowicz
* [Email]: jakubshark@gmail.com
* [License]: MIT
* [Credit]: Dr. Stuart Madnick
* [Wiki]: https://en.wikipedia.org/wiki/Little_man_computer
*/
/**
* State of the computer
*/
interface State
{
// The main working register
accumulator: number,... |
f2a3649ccac2dcea6b4893a0fa26b99cbd6bb1aa | TypeScript | trxcllnt/IxJS | /spec/iterable-operators/isempty-spec.ts | 2.5625 | 3 | import * as Ix from '../Ix';
import * as test from 'tape';
const { empty } = Ix.iterable;
const { isEmpty } = Ix.iterable;
test('Iterable#isEmpty empty', t => {
t.true(isEmpty(empty<number>()));
t.end();
});
test('Iterable#isEmpty not-empty', t => {
t.false(isEmpty([1]));
t.end();
});
|
60e7f7ae4ec7773cfc072d4d9b578d3abaf0ac5e | TypeScript | onaio/reveal-frontend | /src/store/ducks/goals.ts | 2.65625 | 3 | import { Dictionary } from '@onaio/utils';
import { get, keyBy, values } from 'lodash';
import { AnyAction, Store } from 'redux';
import SeamlessImmutable from 'seamless-immutable';
import { PlanActionCodesType } from '../../components/forms/PlanForm/types';
/** the reducer name */
export const reducerName = 'goals';
... |
964f3ecb7995e5e3e7b763f8b0e280935df99f06 | TypeScript | kobi2187/TypeScript.NET | /dist/amd/System/Collections/Array/Sorting/mergeSort.d.ts | 2.828125 | 3 | import { Primitive } from "../../../Primitive";
/**
* Merge sort O(n log (n))
* Warning: Uses recursion.
* @param target
* @returns {number[]}
*/
export declare function mergeSort<T extends Primitive>(target: T[]): T[];
|
8022ac9e7d102742d5b4b5915e95c27907942962 | TypeScript | EdgeApp/edge-react-gui | /src/util/tokenIdTools.ts | 3.078125 | 3 | import { EdgeTokenId } from '../types/types'
import { CurrencyConfigMap } from './utils'
/**
* Precisely identify the assets named by a currency-code array.
* Accepts plain currency codes, such as "ETH" or "REP",
* but also scoped currency codes like "ETH-REP".
*
* The goal is to delete this once the wallet stops... |
6cdc0dcd2b418faba8380dbbd5c198ca1bed0b54 | TypeScript | johanneslumpe/styled-props | /src/utils/overflow/__tests__/overflowY.ts | 2.90625 | 3 | import {
Breakpoints,
Theme,
theme,
ThemeWithoutBreakpoints,
themeWithoutBreakpoints,
} from '../../../test-utils/theme';
import { overflowY } from '../overflowY';
describe('overflowY', () => {
it('should return a function', () => {
const result = overflowY();
expect(result).toBeInstanceOf(Functio... |
aefba5c8fe987b69a247435bb729f16581e02595 | TypeScript | digital-asset/daml-js | /src/model/Filters.ts | 2.625 | 3 | // Copyright (c) 2022 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
import {InclusiveFilters} from "./InclusiveFilters";
/**
* Example:
*
* ```
* {
* inclusive: {
* templateIds: [
* {
* packageId: 'so... |
45dd75b58aaaa101f9b8f767c2cd376104cba33c | TypeScript | namek-network/clover-ui | /src/utils/balanceUtils.ts | 2.625 | 3 | import { BigNumber as BN } from "bignumber.js";
export function trimEnd0(value: string): string {
const n = new BN(value, 10)
if (n.eq(0)) {
return '0'
}
const afterTrim = value.replace(/0+$/,'')
if (afterTrim.endsWith(".")) {
return afterTrim + "0"
}
return afterTrim
}
|
a54fed1a423d6bfe3d4a465f93d1041a393adf26 | TypeScript | nghiattran/transpiler | /src/language/pascal/intermediate/typeimpl/TypeKeyImpl.ts | 2.859375 | 3 | import {TypeKey} from '../../../../intermediate/TypeKey';
import {BaseObject} from '../../../../util/BaseObject';
export class TypeKeyImpl extends BaseObject implements TypeKey {
private text : string;
// Enumeration
public static ENUMERATION_CONSTANTS : TypeKeyImpl = new TypeKeyImpl('ENUMERATION_CONSTANT... |
090ef424c1e7e1e258c836cc0eede5e63efb91db | TypeScript | mevlutbucan/react-payapp | /src/utils/index.ts | 3.765625 | 4 | /**
* @returns Validation result (true|false).
*/
export const checkCardNumber = (cardNetwork: NetworkType, cardNumber: string) => {
if (!cardNetwork) return false;
// if (cardNetwork.algorithm === 'Luhn')
return checkLuhn(cardNumber);
};
interface IAlgorithmicControlFunction {
(cardNumber: string): boolean;... |
f802ba43fcd036ec55b38f11fad719d986d0c96a | TypeScript | sakho3600/preuve-covoiturage | /api/services/user/tests/AuthRepositoryProvider.spec.ts | 2.515625 | 3 | import { describe } from 'mocha';
import { expect } from 'chai';
import { ConfigInterfaceResolver } from '@ilos/common';
import { PostgresConnection } from '@ilos/connection-postgres';
import { CryptoProvider, CryptoProviderInterfaceResolver } from '@pdc/provider-crypto';
import { AuthRepositoryProvider } from '../src... |
d1f969f402aff1a916be009f430dde6c75178308 | TypeScript | irtyamine/algorithm-training | /1254. Number of Closed Islands.ts | 3.5 | 4 | // https://leetcode.com/problems/number-of-closed-islands
function closedIsland (grid: number[][]): number {
const ROWS = grid.length
const COLS = grid[0].length
let numberOfClosedIslands = 0
for (let i = 1; i < ROWS - 1; i++) {
for (let j = 0; j < COLS - 1; j++) {
if (grid[i][j] === 0 && dfs(grid, ... |
2453681043c38a4a862f7c11dab3e747a2e4a321 | TypeScript | nguyer/aws-sdk-js-v3 | /clients/node/client-ec2-node/types/_InstanceCreditSpecificationRequest.ts | 2.828125 | 3 | /**
* <p>Describes the credit option for CPU usage of a T2 or T3 instance.</p>
*/
export interface _InstanceCreditSpecificationRequest {
/**
* <p>The ID of the instance.</p>
*/
InstanceId?: string;
/**
* <p>The credit option for CPU usage of the instance. Valid values are <code>standard</code> and <co... |
a43f122b2db20ff7c97b22143d113ddb967b3002 | TypeScript | vargroozzz/pok_bot | /src/kafka/maintenances.ts | 2.796875 | 3 | import {flow, pipe} from "fp-ts/lib/function"
import * as N from "fp-ts/lib/number"
import * as S from "fp-ts/lib/string"
import {contramap, reverse} from "fp-ts/lib/Ord"
import {filter, filterMap, foldMap, map, sortBy} from "fp-ts/lib/Array"
import {Castle, Maintenance, Store} from "./types"
import * as O from "fp-ts/... |
97bf2cbd7e2dbee595f3c978549d023f4af560e6 | TypeScript | Aventhor/react-base-routing | /src/utils/PathsManager.ts | 3.046875 | 3 | import { AppRoute } from '../interfaces/AppRoute';
import { LayoutRoute } from '../interfaces/LayoutRoute';
class PathsManager {
public isAppRoute(object: any): object is AppRoute {
return 'path' in object;
}
public isLayoutRoute(object: any): object is LayoutRoute {
return 'layout' in obj... |
cb161bb8f15009e0afc774fbd833d95f962b5042 | TypeScript | ErgoLied/Homework | /Homework/js/lesson26_typescript/main2.ts | 2.640625 | 3 | import {IPost, IUser} from "./post";
let post1: IPost = {
id: 1,
userId: 10,
body: 'ololo',
title: 'post'
};
//- Створити функцію конструктор для об'єктів User з полями id, name, surname , email, phone etc
let user: IUser = {
id: 10,
name: 'Meh',
username: 'Meh',
email: 'Sincere@april... |
2fcd27ff58b46d0a4e9770aadab03c2bdb603759 | TypeScript | basilred/ts-tests | /src/modules/namespaces.ts | 3.265625 | 3 | namespace Personnel {
export interface IUser {
displayInfo();
}
export class Employee {
constructor(public name: string) {}
}
export function work(emp: Employee): void {
console.log(`${emp.name} is working`);
}
export const defaultUser = { name: 'Kate' };
}
namespace Data {
export namesp... |
543a24f13a834b2b6180a898eca8112450e4c440 | TypeScript | githop/animate-canvas | /src/index.ts | 2.6875 | 3 |
import {
CANVAS_WIDTH,
CANVAS_HEIGHT,
X_OFFSET,
Y_OFFSET,
SIDE_LENGTH,
Triangle,
Point,
Path,
History,
getPathCords,
deriveInnerTriangle,
drawTriangles,
_drawTriangles,
clearRect,
makePath,
} from './utils';
document.addEventListener('DOMContentLoaded', (event) => {
const cvs = <HTMLC... |
fdf7e4cefdf5299432260705ecc2a64dab188857 | TypeScript | ingscarrero/nodeJS | /ts-generator/bin/framework/types/Immutable.d.ts | 2.890625 | 3 | export declare abstract class Immutable<T> {
private data;
/**
*
*/
constructor(data?: T);
getState(): Readonly<T>;
protected setProperty(name: keyof T, value: T[keyof T]): this;
protected handleSetProperty(name: keyof T, value: T[keyof T]): void;
}
|
5d0820b70b187e89d8a2d580c2dc2e2ef0df6320 | TypeScript | ZnoGouDj/codewars-challenges | /6kyu/6kyu-consecutive-string.ts | 3.34375 | 3 | export function longestConsec(strarr: string[], k: number): string {
let longest = '';
if (strarr.length === 0 || k < 1) return '';
for (let i = 0; i <= strarr.length - k; i++) {
let localLongest = strarr.slice(i, i + k).join('');
if (localLongest.length > longest.length) {
longest = localLongest;
... |
9862924cadb687ad1506dbeeb049e1b75da91bbe | TypeScript | soon14/test | /admin-client/src/store/modules/userManager/onlineUser.ts | 2.515625 | 3 | import { CodeMsg } from '../../index'
import { Commit } from 'vuex'
import { getOnlineUser, downloadOnlineUser, kickUser } from '../../../api/admin/userManager/userManager';
export interface OnlineTable {
uid: number,
channel: string,
ip: string,
location:string,
gid: string
}
export interface Sta... |
8de63ce2e8283e116bfc449a72e64dd326220e94 | TypeScript | Kraamel/Marc | /src/module/auth/dto/auth-credentials.dto.ts | 3.046875 | 3 | import { IsString, Matches, MaxLength, MinLength } from 'class-validator';
export class AuthCredentialsDto {
@IsString()
@MinLength(4)
@MaxLength(20)
username: string;
// @IsString()
// @Matches(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,... |
2c2922e3de2e5a3a9c1ec42ae329d51e2365125a | TypeScript | Alduino/Muzik | /apps/desktop/src/lib/ipc/main.ts | 2.625 | 3 | import {ipcMain, WebContents} from "electron";
import AbortController from "node-abort-controller";
import listen, {HandleHandler, InvokeHandler, ListenResult} from "./impl";
const ipcObjects = new Map<string, ListenResult>();
const handleAdders = new Set<(res: ListenResult) => void>();
export function registerWC(id:... |
25cb90d60477988df2114d22d0f5bc83480ed6fa | TypeScript | newcanopies/ADA | /ada-ui/src/app/classes/parameter-declaration.ts | 2.890625 | 3 | export class ParameterDeclaration {
name: string;
type: string;
constructor(parameterDeclarationJSON) {
this.name = parameterDeclarationJSON['name'];
this.type = parameterDeclarationJSON['type'];
}
}
|
ca6d751e108781660034c64a546e128e9fe8eb26 | TypeScript | kyonetca/core | /src/core/protocol/hydra/messages/interfaces/WritableAdditiveSharingMessageFactoryInterface.ts | 2.84375 | 3 | /// <reference path='../../../../../../ts-definitions/node/node.d.ts' />
/**
* Constructs the payload for an ADDITIVE_SHARING message
* For more information on the message format, see {@link core.protocol.hydra.AdditiveSharingMessageInterface}
*
* @interface
* @class core.protocol.hydra.WritableAdditiveSharingMes... |
632327031b48d98dd2964e41d45ca9b8344bd9ac | TypeScript | sortofsleepy/crossfade-test | /src/jirachi/math/vec4.ts | 3.28125 | 3 | /* Copyright (c) 2015, Brandon Jones, Colin MacKenzie IV.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merg... |
0f9a297a9a25eac2418166803808f826001fdbfc | TypeScript | iannmichels/web-avaliacao | /src/assets/util/util.ts | 2.96875 | 3 | import { FormControl, ValidatorFn } from '@angular/forms';
export class Util {
public static ADMIN: String = 'admin';
public static GUEST: String = 'comum';
public static isUndefined(obj: any): boolean {
if (obj === undefined || obj === null || obj === '' || obj === 'null') {
... |
cb7f6f8acc9c2aec7913711a55e961b55f8f3e54 | TypeScript | kyk85/ADA_Module3_Week04_Geolocation | /src/pages/home/home.ts | 2.546875 | 3 | import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { ActionSheetController } from 'ionic-angular'
import { Geolocation } from '@ionic-native/geolocation';
import { Camera, CameraOptions } from '@ionic-native/camera';
import { SocialSharing } from '@ionic-native/social-shar... |
b0051839b7af36f928a3c6e64b0fe6ef4db08443 | TypeScript | sunnysk/ant-design-pro-layout | /src/utils/utils.ts | 2.5625 | 3 | import { useRef, useEffect } from 'react';
import isEqual from 'lodash.isequal';
import { stringify } from 'use-json-comparison';
import hash from 'hash.js';
import { MenuDataItem } from '../typings';
/* eslint no-useless-escape:0 import/prefer-default-export:0 */
const reg = /(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)... |
d401ff51c2fbc110b535d7ec7bf8a763b36d2a80 | TypeScript | Tsophen/Web-Application | /src/fetches/loadEncryptionKey.ts | 3.03125 | 3 | /**
* Loads an Encryption Key from the given Storage instance
*
* @returns Encryption Key
*/
const loadEncryptionKey = (storage: Storage): Promise<string> => {
return new Promise((resolve, reject) => {
let encryptionKey = storage.getItem("ek");
if(!encryptionKey || encryptionKey === null)
return... |
3cc95acb452dddd148ed5dd4f01a2b341583a32a | TypeScript | aws/jsii | /packages/jsii-pacmak/test/targets/python/type-name.test.ts | 2.609375 | 3 | import {
Assembly,
CollectionKind,
NamedTypeReference,
PrimitiveType,
SchemaVersion,
Type,
TypeKind,
TypeReference,
} from '@jsii/spec';
import {
toTypeName,
NamingContext,
PythonImports,
} from '../../../lib/targets/python/type-name';
const BORING_TYPE = 'BoringClass';
const NESTED_TYPE = 'Nest... |
525a8a573c183a22f8a537ebb7c7d4c3cb01f14e | TypeScript | pokewalkthrough/pokeapi | /src/interfaces/utility/common/version-game-index.ts | 2.546875 | 3 | import { INamedAPIResource } from './named-api-resource';
export interface IVersionGameIndex {
/**
* The internal id of an API resource within game data.
*/
game_index: number;
/**
* The version relevent to this game index.
*/
version: INamedAPIResource;
}
|
fec0627e33c3d23611a7d79a7e4ab29eb7e542c8 | TypeScript | software-training-for-students/manual-editor | /core/importManualHtml.ts | 2.546875 | 3 | import ElementInfo, * as ElementTypes from "core/ElementInfo";
import { ContentState, convertFromHTML, convertToRaw } from "draft-js";
import {decode} from "he";
import {addElements, Document} from "stores/Document";
// These are used for images in the old manual style.
const legacyImagesFolder = "images/";
const lega... |
98e4d41334e4c7597312fe0de867ba2a85900afd | TypeScript | Dharini9/store-multiple-libraries | /src/app/store-ngrx/app.state.ts | 2.828125 | 3 | export interface CandidateDetailsState {
candidateID: number;
candidateName: string;
}
export interface ClientDetailsState {
clientID: number;
clientName: string;
}
export const initialcandidateDetailsState: CandidateDetailsState = {
candidateID: 0,
candidateName: ''
};
export const initialCl... |