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 |
|---|---|---|---|---|---|---|
43af5fcdbe8f8fe07d34ee13d25c29ac9ee5a9b3 | TypeScript | bogdandan/adventofcode2020 | /packages/day6/src/index.ts | 3.15625 | 3 | import path from 'path';
import fs from 'fs';
import { Group } from './model';
function readInput(filename: string): Group[] {
const filePath = path.join(__dirname, '../data', filename);
const input = fs.readFileSync(filePath, 'utf-8');
const groups: Group[] = [];
input.split('\n\n').forEach((groupInput) => {
... |
889638311142ff6224e0e4ab99d1c9f8fa0f8705 | TypeScript | DavidTorresM/ing-software-backend | /src/publicacion/controller/publicacion.controller.ts | 2.53125 | 3 | import {
Body,
Controller,
Get,
Param,
Post,
UseGuards,
} from '@nestjs/common';
import { JwtAuthGuardDocente } from '../../auth/guards/jwt-aut.docente.guard';
import { JwtAuthGuardAlumno } from '../../auth/guards/jwt-auth.alumno.guard';
import { Publicacion } from '../publicacion.entity';
import { PublicacionD... |
7cf5d788b7375c8a3e5d838eaf1006c1ef52a6c4 | TypeScript | lineCode/redis-om-node | /lib/search/where-array.ts | 3.125 | 3 | import Entity from "../entity/entity";
import Search from "./search";
import WhereField from "./where-field";
export default class WhereArray<TEntity extends Entity> extends WhereField<TEntity> {
private value!: string[];
contain(value: string): Search<TEntity> {
this.value = [value];
return this.search;
... |
c11d7af96d4490803eeb86a559c72886a7443b1c | TypeScript | dgp-web/dgp-ng-app | /projects/dgp-ng-charts/src/lib/shared/functions/normal/create-normal-interpolator.function.ts | 2.671875 | 3 | import * as d3 from "d3";
import { Many } from "data-modeling";
import { getProbabilityChartPMax } from "../probability-chart/get-probability-chart-p-max.function";
import { getProbabilityChartPMin } from "../probability-chart/get-probability-chart-p-min.function";
import { getNormalYCoordinate } from "./get-normal-y-c... |
ebf6a54a83a4ed719da1b0a8303bfbe5ac5117e0 | TypeScript | Teaplus-S-Srisuwan-Dii-G-2/Typescript_WS | /src/employee.ts | 3.625 | 4 | interface configemployee {
name?: string
surnane?:string
employeeID?:number
age?:number
salary?:number
Bonus?:boolean
}
function C_employee(config:configemployee): {name:string;surnane:string;employeeID:number;age:number;salary:number;bonus:boolean}{
let newemployee = {name:"Default",surnan... |
fbb5f7801f0ca40fda18018cc443d07a397154bd | TypeScript | VolodymyrRudeychuk/d3v4Angular4_chart | /src/app/shared/data.ts | 2.921875 | 3 | import { Component, OnInit } from '@angular/core';
export interface Frequency {
letter: string,
frequency: number,
}
export const letterStart = ["CN", "NG", "QA", "EG", "CZ", "HU", "HR", "SI", "IT", "PN"];
function getPositiveRandomArbitrary() {
return Math.floor(Math.random() * 100) + 17
}
function getNegati... |
6f25081af6fa7f9ab807f82c1112c33a0f936a41 | TypeScript | taokexia/ts-study | /src/base/enum.ts | 4 | 4 | // 数字枚举
enum Num {
One,
Two,
Three
}
console.log(Num.One === 0) // true
// 字符串枚举
enum Str {
Up = 'up',
Down = 'down'
}
console.log(Str.Up, Str.Down) // up down
// 异构枚举
enum Enum {
Num = 1,
Str = 'test'
}
// 反向映射
enum BackReflect {
Up,
Down,
Left,
Right = 'right'
}
conso... |
604383c0c05ce1ed2f72798247fa1d7e40873ff4 | TypeScript | avdeev1/tinkoff-social-network | /backend/src/auth/auth.service.ts | 2.65625 | 3 | import { HttpException, Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Auth } from '../models/auth';
import { Repository } from 'typeorm';
import { User } from '../models/user';
import { RegisterUseDto } from './dto/registerUse.dto';
@Injectable()
export class AuthServ... |
aeefa24fc6f470edbf17fe8bf200cf43afcc8b7d | TypeScript | commonlyjs/commonly | /packages/transducer/xhead/xhead.ts | 2.828125 | 3 | import Transducer from "../../type/Transducer/Transducer"
import xslice from "../xslice/xslice"
/**
* [Not yet documented]
*
* @since 1.0.0
*
* @returns
*/
const xhead = <TValue>(): Transducer<TValue> => {
return xslice(0, 1)
}
export default xhead
|
c2bdd12b8e3952afa151cd0a21df29e17786dfb2 | TypeScript | perzeuss/LurkerBot | /bot/tools/stats/game_tracker.ts | 2.65625 | 3 | import { GuildMember } from "discord.js";
import * as UserMethods from "../user_methods";
import stats from "../stats/stats";
import { getMongoRepository } from "typeorm";
import { GameTime } from "../../../typeorm/models/game-time";
import { DiscordDBUser } from "../../../typeorm/models/discord-db-user";
import { Ga... |
035283d7f1f937e2816cea47969e3cdfe747e8ad | TypeScript | rickyhopkins/spyfalling | /src/context/authentication.ts | 2.703125 | 3 | import React from "react";
export interface User {
_id: string;
name: string;
avatar: string;
}
export interface UserProfile {
displayName?: User["name"];
avatar?: User["avatar"];
}
interface Authentication {
user?: User;
addUser?(name: string): Promise<boolean>;
}
const AuthenticationContext = React.createC... |
6233450a2585e883310bf47f6e9b8d9e9a33d81d | TypeScript | gumiranda/ts-api-devdoidobackup | /projetoAntigo/controller-base.ts | 2.59375 | 3 | const post = async (repository, validationContract, res, modelData) => {
try {
if (!validationContract.isValid()) {
res
.status(400)
.send({
message: 'Existem dados inválidos na sua requisição',
validation: validationContract.errors(),
})
.end();
ret... |
6e40222ce5da10457f289e8b36e1aff1a44241f8 | TypeScript | thomicdk/relinq | /src/deferred-iterable.ts | 3.140625 | 3 | /** @internal */
export type DeferredIterable<TSource> = () => IterableIterator<TSource>;
/** @internal */
export function createDeferredIterable<TSource>(source: Iterable<TSource>): DeferredIterable<TSource> {
return function*() {
for (let item of source) {
yield item;
}
}
}
|
8d16c1d0c4b6a0a4ec964336a240093eb68afb80 | TypeScript | jackzoom/JMLotto_Node | /src/config/ticket.config.ts | 3.0625 | 3 | interface RankRulesType {
[key: string]: {
name: string;
bonus: string | number;
bonusUnit: string;
rules: any;
};
}
/**
* 奖项级别信息
* @see https://www.lottery.gov.cn/dlt/ltjsq/index.html
*/
export const LottoRankRules: RankRulesType = {
0: {
name: "未中奖",
bonus: "",
bonusUnit: "",
... |
b2c911ed39fba5bd370ae38b5c82525715bf2fc5 | TypeScript | Kiranmaii/RecipeBook | /src/app/recipe-list/recipe-filter.pipe.ts | 2.734375 | 3 | import { PipeTransform, Pipe } from '@angular/core';
import { Recipes } from '../shared/recipes.model';
@Pipe({
name: 'Filter'
})
export class RecipeFilterPipe implements PipeTransform {
transform(recipe: Recipes[], search: string): Recipes[] {
if (!recipe || !search){
return recipe;
... |
f444b9554f63b802a10166bae404d62ea8dd5c4c | TypeScript | zhougz520/draft-ts | /src/component/selection/isSelectionAtLeafStart.ts | 2.59375 | 3 | import { EditorState } from '../model/immutable/EditorState';
import { SelectionState } from '../model/immutable/SelectionState';
import { List } from 'immutable';
export function isSelectionAtLeafStart(editorState: EditorState): boolean {
const selection: SelectionState = editorState.getSelection();
const anc... |
65ce6c446c347e95193f7d43e9a508533d74010f | TypeScript | kyen99/next.js | /packages/font/src/local/utils.ts | 2.78125 | 3 | import { AdjustFontFallback } from 'next/font'
const allowedDisplayValues = ['auto', 'block', 'swap', 'fallback', 'optional']
const formatValues = (values: string[]) =>
values.map((val) => `\`${val}\``).join(', ')
const extToFormat = {
woff: 'woff',
woff2: 'woff2',
ttf: 'truetype',
otf: 'opentype',
eot: ... |
b161473d532bc8dfe034e1bf99aff4fadceab30d | TypeScript | JVH31/up-goe | /src/app/student/general/pages/gen-profile/gen-profile.component.ts | 2.796875 | 3 | //Core Imports
import {
Component,
OnInit
} from '@angular/core';
import {
NgModel
} from '@angular/forms';
//Application Imports
import {
Course,
Quest,
User
} from 'shared/models';
import {
PageService,
UserService
} from 'shared/services';
/* AHJ: Remove once... |
8db523f7e7b7cdf46404af299ba9aee60caa039a | TypeScript | jacob-ebey/gremlin-helper | /src/Schema.ts | 3.046875 | 3 | export type SchemaType = 'string' | 'number' | string;
export interface IPropDef {
type: SchemaType;
required?: boolean;
}
// type Required<T> = {
// [P in Purify<keyof T>]: NonNullable<T[P]>;
// };
export type NonNullable<T> = T & {};
export type Purify<T extends string> = {[P in T]: T; }[T];
export type Prop... |
edb00aab05f067ddb89949dc11b8724555647fcf | TypeScript | muzea/aliyun-sdk-node | /dist/ecs/ModifyAutoSnapshotPolicyEx/req.d.ts | 2.625 | 3 | interface ModifyAutoSnapshotPolicyExRequest {
"RegionId"?: string;
/**
* 自动快照策略所在的地域 ID。您可以调用 [DescribeRegions](~~25609~~) 查看最新的阿里云地域列表。
* @example `cn-hangzhou`
*/ "regionId": string;
/**
* 目标自动快照策略 ID。您可以调用 [DescribeAutoSnapshotPolicyEx](~~25530~~) 查看您可用的自动快照策略。
* @example `p-autopolic... |
e9ac6873fb52c23861e397892ab495cda1d74c3a | TypeScript | pchevilley/2020-onboarding-project | /core/src/Classes/Movies.test.ts | 2.671875 | 3 | import axios from "axios";
import Movies from "./Movies";
import Genres from "./Genres";
import Sorting from "./Sorting";
const genres = new Genres();
const movies = new Movies();
const sorting = new Sorting();
jest.mock("axios");
const mockedAxios = axios as jest.Mocked<typeof axios>;
it("should return a valid TMD... |
6673c141696d4b17cd376cce6c9e5191a50e4142 | TypeScript | diggitus/stock-analyzer | /src/app/model/cashFlowRatios.ts | 2.6875 | 3 | /**
* Cash Flow Ratios Class
*/
export class CashFlowRatios {
operatingCashFlowGrowth: Array<number> | null;
freeCashFlowGrowth: Array<number> | null;
capExAOfSales: Array<number> | null;
freeCashFlowSales: Array<number> | null;
freeCashFlowNetIncome: Array<number> | null;
/**
* Construc... |
b6c30d0fd3f2d986ea1718740a3a838dbfd77729 | TypeScript | NichijouCC/ToyGL | /src/webgl/pixelFormatEnum.ts | 2.75 | 3 | /* eslint-disable no-redeclare */
/* eslint-disable import/export */
import { TypedArray } from "../core/typedArray";
import { GlConstants } from "./glConstant";
import { PixelDatatypeEnum } from "./pixelDatatype";
export enum PixelFormatEnum {
DEPTH_COMPONENT16 = GlConstants.DEPTH_COMPONENT16,
/**
* A ... |
dd61154bbc09d59ec27140af55ed1b8a697b2cd1 | TypeScript | yami-beta/nextjs-todo-sample-template | /src/modules/todoSlice.ts | 2.8125 | 3 | import { createSlice, PayloadAction } from "@reduxjs/toolkit";
import { v4 as uuidv4 } from "uuid";
export type Todo = {
id: string;
text: string;
completed: boolean;
};
type TodoState = {
todos: Todo[];
};
export const todoInitialState: TodoState = {
todos: [
{ id: uuidv4(), text: "todo0", completed: ... |
6eeb53ea9cfc0f1dd63f0e472294f7e127852b61 | TypeScript | mdbobskiy777/social_network | /src/redux/users-reducer.ts | 2.671875 | 3 | import {DeleteFollowType, PostFollowType, usersAPI} from "../api/api"
import {updateObjectInArray} from "../utils/object-helpers"
import {PhotosType} from "./profile-reducer";
import {Dispatch} from "redux";
const FOLLOW = 'users-reducer/FOLLOW'
const UNFOLLOW = 'users-reducer/UNFOLLOW'
const SET_USERS = 'users-reduce... |
5b673ab6db048f149ef64e61199b78d544ec13aa | TypeScript | bradenmacdonald/ratio | /frontend/budget/components/tab-transactions/parse-ofx.ts | 2.75 | 3 | import {parse as parseOFX} from 'ofx-js';
import {Currency, PDate, SUPPORTED_CURRENCIES} from 'prophecy-engine';
export interface ImportedTransaction {
date: PDate;
amount: number;
/** A unique ID for this transaction */
tid: string;
description: string;
}
export interface ParseResult {
unique... |
9736ebb85889e23c3a400f21137468443701eee8 | TypeScript | expo/expo | /packages/expo-sensors/build/Pedometer.d.ts | 2.5625 | 3 | import { PermissionExpiration, PermissionResponse, PermissionStatus, Subscription } from 'expo-modules-core';
export type PedometerResult = {
/**
* Number of steps taken between the given dates.
*/
steps: number;
};
/**
* Callback function providing event result as an argument.
*/
export type Pedome... |
5beb6e0f9fb39f145fbd602f1c203565e8bd25ea | TypeScript | OptimalBits/ground | /lib/container/collection-schema.ts | 2.75 | 3 | /// <reference path="../models/schema.ts" />
/// <reference path="./collection.ts" />
module Gnd {
/**
Collection Schema Type. This class can be used to define collection types
in schemas.
var ChatSchema = new Schema({
rooms: new ColectionSchemaType(Room, 'rooms');
});
@cla... |
0d1a92f7ba79ee21b51bd3a403c5f3bc10091836 | TypeScript | lmachens/trophy-hunter-api | /src/routes/champs.ts | 2.546875 | 3 | import Champs, { Champ, ChampStats } from '../models/Champs';
import { Request, Response } from 'express';
import { sortWinRate } from '../utils/sort';
export async function getChamp(req: Request, res: Response) {
res.set('Cache-Control', 'public, max-age=1200');
const champId = parseInt(req.query.champId);
cons... |
390c5965670698bef98de3d98a2a0dcb009084e0 | TypeScript | fahadhussain2/Angular-2-Assignments | /Inventory Application/src/app/app.component.ts | 2.53125 | 3 | import { Component } from '@angular/core';
@Component({
selector: 'inventory-app',
styleUrls: ['./app.component.css'],
template:
`
<header></header>
<br/>
<div class="container">
<product-list
[productlist]="product">
</product-list>
</div>
`
})
export class AppComponent {
product:Pro... |
6d9cb5404f9d5b05d92aac01548d05c4eef9ad8f | TypeScript | organization-research-group/org-shell | /src/Route.ts | 3.015625 | 3 | "use strict";
import * as qs from 'querystring'
import { Params, Opts } from './types'
export default class Route {
resourceName: string;
params: Params;
opts: Opts<any>;
constructor(resourceName: string, params?: Params, opts?: Opts<any>) {
this.resourceName = resourceName;
this.params = params || ... |
1272cfa88b481d6277a1e8bb3bd595435eccc024 | TypeScript | AngelTezo/FinalProject | /src/app/rol/rol.service.ts | 2.515625 | 3 | import { Rol } from './rol';
import { Injectable } from '@angular/core';
import { Http, Response, Headers, RequestOptions } from '@angular/http';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/catch';
@Injectable()
export class RolService {
constructor(pri... |
1bcfe60c0137be3e9143fc2db9e44d0d58f6f4b7 | TypeScript | iFalcao/PrevisaoTempo | /SitePrevisaoTempo/src/app/_models/city.ts | 2.5625 | 3 | export interface City {
name: string;
customCode: number;
latitude?: number;
longitude?: number;
country?: string;
}
|
f2b05ae28f2cadeceb71ffd4628e513a20eaf0e4 | TypeScript | lorceroth/speculo | /src/plugins/plugin-loader.ts | 2.53125 | 3 | import * as $script from 'scriptjs';
import { IConfig, IPluginConfig } from "../config/config";
import { IPlugin } from './plugin';
const PLUGINS_PATH = '/plugins';
export const PLUGINS_SCRIPT_ID = 'plugins';
export class PluginLoader {
constructor() {
console.log('Plugins loaded from:', PLUGINS_PATH);
}
... |
7c4f414e90157a84de5a5bb9a0f7997bfcc4fbfc | TypeScript | yuebwang/create-figma-plugin | /packages/monetization/src/gumroad/validate-gumroad-license-key-ui-async.ts | 2.53125 | 3 | import { LicenseKeyValidationResult } from '../utilities/types.js'
const emptyLicense = {
email: null,
licenseKey: null,
purchaseTimestamp: null,
validationTimestamp: null
}
export async function validateGumroadLicenseKeyUiAsync(options: {
incrementUsesCount: boolean
licenseKey: string
productPermalink:... |
9e51436eceb7f9a4d8eea4cce1431844bfd07d32 | TypeScript | BobNisco/ComBOBiler | /scripts/code_table.ts | 3.40625 | 3 | module Combobiler {
export class CodeTable {
// Set the expected size of the code table. This should match up with the
// program size on the OS. Since MS-BOS has a default program size of 256,
// we will match that for our compiler.
public static CODE_TABLE_SIZE = 256;
public entries: Array<string>;
// Ke... |
a0b2175c89146cc7393634ab825e0766f657ad66 | TypeScript | ericlee05/Busrode | /src/Busrode.ts | 2.765625 | 3 | import { CityClass, CityCode } from "./City/City"
import { Yangsan } from "./City/Yangsan/Yangsan"
import { BusArrival } from "./Models/BusArrival"
import { BusLine } from "./Models/BusLine"
import { BusStop } from "./Models/BusStop"
export class Busrode extends CityClass{
private readonly CityWrapper:CityClass
pr... |
59480ea1e4c714c61aeceafc9eb6e7e66a920b2a | TypeScript | PushTracker/EvalApp | /libs/core/services/analytics.service.ts | 2.765625 | 3 | import { Injectable } from '@angular/core';
import { Router } from '@angular/router';
export interface IAnalyticsProperties {
category?: string;
label?: string;
action?: string;
// https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#hitType
hitType?:
| 'pageview'
... |
74b98cae2b6c05983da751bfcecd23fd4ec853ab | TypeScript | next-generation-web-translator/translation-api | /src/sentence-dict/sentence-dict.service.ts | 2.734375 | 3 | import { Injectable } from '@nestjs/common';
import { TranslationModel } from '../models/translation.model';
import { OriginalModel } from '../models/original.model';
import { SentenceDictEntryModel } from '../entities/sentence-dict-entry.model';
import * as leven from 'leven';
import { pick } from 'lodash';
@Injectab... |
1634bc7d69a03b349185be52f575dd4a3917ba38 | TypeScript | Sumeetrana/100-Algorithms-Challenge | /alphabeticSubSequence/alphabeticSubSequence.ts | 3.546875 | 4 | function alphabeticSubSequence(inputString: string): boolean {
let isSS = true;
for (let i = 0; i < inputString.length - 1; i++) {
if (inputString.charCodeAt(i) >= inputString.charCodeAt(i + 1)) {
isSS = false;
break;
}
}
return isSS;
}
console.log(alphabeticSubSequence("acf"));
|
6f721aa8e4bc05bdc1826f9d9eea956a8df60b8b | TypeScript | JuanKitu/ProyectoGIS | /server/src/services/jwt.services.ts | 2.59375 | 3 | import { OAuth2Client } from 'google-auth-library';
import jwt,{ Secret } from 'jsonwebtoken';
import { UsuarioInterface, UsuarioTokenInterface } from '../interfaces/interfaces';
const client = new OAuth2Client('1096762710491-c7d53lpa1n5uju66qi8md97gln49rv1d.apps.googleusercontent.com');
export function createToken(us... |
a9c18791786c4430bdf32100571aa87da45b7b2e | TypeScript | ThomasSpeedy/Angular | /buch_ng4/internationalisierung/src/app/shared/user.ts | 2.515625 | 3 | export interface User {
firstName?: string;
lastName?: string;
sex?: string;
} |
7639d9927c6b383be479672a119883ac6c71d3b9 | TypeScript | thehig/turtleChallenge | /test/Turtle.spec.ts | 3.640625 | 4 | import { expect } from "chai";
import { Turtle, Direction, TurtleState, Action } from "../src/";
describe("Turtle", () => {
it("is not null or undefined", () => {
expect(Turtle).to.not.be.null;
expect(Turtle).to.not.be.undefined;
});
it("has a constructor that takes 3 parameters", () =>
expect(() =>... |
751c6382bae38ea57b2cb74e869ecc6a9003d5ef | TypeScript | green-fox-academy/IceAge-Reddit-Backend | /tests/services/UserValidationService.spec.ts | 2.546875 | 3 | /* eslint-disable @typescript-eslint/unbound-method */
import { Unauthorized } from '@tsed/exceptions';
import { assert, expect } from "chai";
import { beforeEach } from 'mocha';
import { UserCreation } from '../../src/models/auth.types';
import { UserValidationService } from '../../src/services/UserValidationService';... |
0fb0a11d5c9cd22e91576d34ddb28b4e1bb42110 | TypeScript | companieshouse/promise-to-file-web | /src/client/axios.api.call.handler.ts | 2.96875 | 3 | import axios, { AxiosError, AxiosRequestConfig, AxiosResponse, Method } from "axios";
import logger from "../logger";
import PromiseError from "../utils/error";
export const HTTP_POST: Method = "post";
/**
* A base axios config that is common for API calls.
* @param token Bearer token for API call
*/
export const ... |
3a38601d437ea990831c8033ef26aa35798865d4 | TypeScript | cdnjs/cdnjs | /ajax/libs/amcharts4/4.9.34/.internal/plugins/bullets/PointedCircle.d.ts | 3.03125 | 3 | /**
* Pointed rectangle module.
*/
/**
* ============================================================================
* IMPORTS
* ============================================================================
* @hidden
*/
import { PointedShape, IPointedShapeProperties, IPointedShapeAdapters, IPointedShape... |
086fd84a1809200b29579f1205fef3aa7628f9f5 | TypeScript | cyberspacedk/RxJS | /rxjs_ts/src/swipe/index.ts | 3.265625 | 3 | import { fromEvent, Observable, zip, from, merge, iif, of } from "rxjs";
import { map, switchMap, pluck } from "rxjs/operators";
// create two streams
// click or touch start
const start$ = getClientX(fromEvent<TouchEvent>(document, 'touchstart'), fromEvent<MouseEvent>(document, 'mousedown'));
// click or touch end
... |
a0753674e1ff75e8a949cce13f518e92e34be77e | TypeScript | wezzzyang/game | /app_server/src/utils/crypto.ts | 2.953125 | 3 | // @ts-ignore
function Base64(this: any) {
let _keyStr =
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
this.encode = function (input: string) {
var output = '';
var chr1: number,
chr2: number,
chr3: number,
enc1: number,
enc2: number,
enc3: number,
... |
52aa4b4bae460a068f81cbafd9169180725eb5bf | TypeScript | B2bCashLimited/b2b-admin.b2b.cash | /src/app/core/models/pager.model.ts | 2.546875 | 3 | export class PagerModel {
currentPage: number;
perPage: number;
totalItems: number;
totalPages: number;
constructor(obj) {
this.currentPage = obj.page;
this.perPage = obj.page_size;
this.totalItems = obj.total_items;
this.totalPages = obj.page_count;
}
}
|
430dea2d33ebb4aa41c85cd87a7f716435cc4f6a | TypeScript | power-f-GOD/books-dir-API | /src/controllers/books.controller.ts | 2.609375 | 3 | import { Request } from 'express';
import debug from 'debug';
import { BooksDB } from 'src/db';
import { Book, BRequestBody } from 'src/types';
import { BResponseSuccess, BHttpHandler } from 'src/helpers';
import { HttpStatusCode } from 'src/constants';
const log = debug('books-dir:books-controller');
class BooksCon... |
bca0392302d583df989807ccd688e41b86c990fd | TypeScript | Auroratide/Dampfire | /game/tools/Positioning.ts | 3.078125 | 3 | import * as PIXI from 'pixi.js'
export default class Positioning {
private renderer: PIXI.Renderer
constructor(renderer: PIXI.Renderer) {
this.renderer = renderer
}
y = (obj: PIXI.DisplayObject, units: number) => {
obj.y = units
}
centerX = (obj: PIXI.DisplayObject) => {
obj.x = this.renderer... |
a500f353ac5d553e3ac2290e0622f71093b58815 | TypeScript | binhapp/wakatime-cli | /src/utils/codingGoals.ts | 2.703125 | 3 | import fetch from 'node-fetch';
import { Spinner } from 'cli-spinner';
import { blueText, greenText, headText, purpleText, redText } from './color';
import asTable from 'as-table';
import { handleDate } from './handleDate';
const codingGoalsUrl = 'https://wakatime.com/api/v1/users/current/goals';
interface Goals {
... |
190e81c354fec0694b5fc9863a36798b23e6e59b | TypeScript | Frezc/leetcode-solutions | /leetcode-challenge/2021-06/Matchsticks to Square.ts | 3.484375 | 3 |
// use DFS to check every case
function makesquare(matchsticks: number[]): boolean {
const sum = matchsticks.reduce((acc, cur) => acc + cur);
if (sum % 4 !== 0) {
return false;
}
const size = sum / 4;
return checkSquare(size, [0, 0, 0, 0], matchsticks, 0);
};
function checkSquare(size... |
bae567b3f52fdde1132f44774ef7a46e60fb4df0 | TypeScript | troyunverdruss/advent-of-code-2015 | /src/utils.ts | 2.796875 | 3 | import fs from "fs";
export function formatDay(day: number): string {
return day.toString().padStart(2, "0");
}
export function loadInput(day: number): string[] {
const filename = "inputs/input" + formatDay(day) + ".txt";
const lines = fs.readFileSync(filename)
.toString()
.split(/\r?\n/);
return line... |
c680df28e5b3eddbfd44e59dbf0fb0991ec25257 | TypeScript | matthu/Spatial-Temporal-Storyline-Visualization | /src/storyline.ts | 2.875 | 3 | // Generators
import { storyOrder } from './order/index'
import { storyAlign } from './align/index'
import { storyCompact } from './compact/index'
import { storyRender } from './render/index'
import { storyTransform } from './transform/index'
// Data structure
import { ConstraintStore, ConstraintStyle } from './data/co... |
ae2ef218b662fb2fffc16ef302c6b3fc95612913 | TypeScript | min33sky/murmur | /Frontend/typings/posts.d.ts | 2.75 | 3 | export type CommentType = {
id: string;
content: string;
User: {
id: string;
nickname: string;
};
};
export interface IPost {
id: string;
content: string;
likes: number[]; //? 좋아요를 누른 사람들의 아이디
User: {
id: string;
nickname: string;
email: string;
}; // 포스트 작성자
Images: { src: stri... |
738cf0b17a5679853fd332fe614efd87fe0cd219 | TypeScript | soltrinox/ecos-design-system | /src/routes/guides/guides-list.ts | 2.625 | 3 | import { customElement, IRouteViewModel } from 'aurelia';
import template from './guides-list.html'
import guides from './guides.json';
@customElement({name: 'guides-list', template})
export class GuidesList implements IRouteViewModel {
public guidesList = guides;
public filteringTag = 'all';
public search = ... |
ef9c6a6e9637fde66c9899672a94f8a2fae3658b | TypeScript | avemike/flappy-bird.js | /client/utils/getBirdAssets.ts | 2.53125 | 3 | import sprites from "url:../../assets/birds/**/*.svg";
import { BIRD_COLORS } from "../../configs/game";
const birdColor = {
color: BIRD_COLORS.YELLOW,
};
function setBirdColor(color: BIRD_COLORS) {
birdColor.color = color;
}
function getBirdAssets(color: BIRD_COLORS): HTMLImageElement[] {
const wingsBot = ne... |
3655233651f670c17e48343c353b1010fffbdf50 | TypeScript | ViV3RRa/sisl-client | /src/ui/reducers/all-questionnaires-reducer.ts | 3.03125 | 3 | interface IAllQuestionnairesFetching {
type: 'ALL_QUESTIONNAIRES_FETCHING';
payload: any;
}
interface IAllQuestionnairesFetched {
type: 'ALL_QUESTIONNAIRES_FETCHED';
payload: any;
}
export type AllQuestionnairesActions =
| IAllQuestionnairesFetching
| IAllQuestionnairesFetched;
export interface IUIStateA... |
1ad2920340145d3c8ccf465d0d5c6e2be91cab36 | TypeScript | krawaller/algol5 | /modules/content/commands/helpers/stubGame.ts | 2.734375 | 3 | import { GameId } from "../../../games/dist/list";
import meta from "../../../games/dist/meta";
import path from "path";
import fs, { writeFileSync } from "fs-extra";
export const stubGame = (gameId: GameId) => {
const out = path.join(__dirname, `../../material/games/${gameId}`);
if (!fs.existsSync(out)) {
fs.... |
5afa86cf363cc390468506abf2cca90af2e9dfaa | TypeScript | xiriuxb/mecanica | /backend/api-mecanica/src/clases-genericas/clase-generica-component/clase-generica.controller.ts | 2.59375 | 3 | import {
BadRequestException,
Body,
Controller,
Delete,
Get,
InternalServerErrorException,
Param,
Post,
Put,
Query,
} from '@nestjs/common';
import { ClaseGenericaService } from './clase-generica.service';
import { validate } from 'class-validator';
import { ConsultaInterface } from './consulta.inte... |
acc4d5badb4724b9f786f96b82b4742ed6e6765f | TypeScript | maiyama18/ymark | /src/node/node.ts | 3.3125 | 3 | export type Node = Document | Line | Inline;
// Document node
export class Document {
public readonly nodeType = 'DOCUMENT';
public lines: Line[];
constructor(lines: Line[] = []) {
this.lines = lines;
}
public addLine(line: Line): void {
this.lines.push(line);
}
}
// Line nod... |
7d19aa997d4424fdb5a9f1594bcefbead6060863 | TypeScript | dey600r/MTM | /app/src/app/core/services/common/calendar.service.ts | 2.609375 | 3 | import { Injectable } from '@angular/core';
// LIBRARY ANGULAR
import { TranslateService } from '@ngx-translate/core';
import * as Moment from 'moment';
// UTILS
import { Constants } from '@utils/index';
// MODELS
import { VehicleModel } from '@models/index';
@Injectable({
providedIn: 'root'
})
export class Cal... |
0a08f7f9f981b316cd1138f05166c347a6eca585 | TypeScript | microsoft/FluidFramework | /server/routerlicious/packages/services-core/src/clientManager.ts | 2.5625 | 3 | /*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
import { IClient, ISignalClient, ISignalMessage } from "@fluidframework/protocol-definitions";
/**
* Represents a client that has some sequence numbers attached
*/
export interface ISequencedSign... |
8105f083ed87327aa0e01c273f5177485524dd9b | TypeScript | Leko/darkdown | /parser-combinator/EOS.ts | 2.953125 | 3 | import { Parser } from './parser.ts'
// End of string
export const EOS = (): Parser<boolean> => (input: string, pos: number) => {
if (input.length === pos) {
return [true, true, pos]
}
return [false, null, pos]
}
|
5b1d0119fbf788b20f4e8c664ccfa99c8549da11 | TypeScript | wso2/samples-is | /b2b-sample/libs/business-admin-app/data-access/data-access-controller/src/lib/controller/role/controllerPatchRole/controllerDecodePatchRole.ts | 2.53125 | 3 | /**
* Copyright (c) 2022, WSO2 LLC. (https://www.wso2.com). All Rights Reserved.
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache... |
d60f52ccc20a44725d05ddba4aa743b59384229a | TypeScript | hostops/estech-challenge | /web-application/src/main/webapp/app/shared/model/system-device-type.model.ts | 2.578125 | 3 | import { ISystemDevice } from 'app/shared/model/system-device.model';
export const enum DeviceType {
CONTROLLER = 'CONTROLLER',
CONFIGURABLE = 'CONFIGURABLE',
PASSIVE = 'PASSIVE',
SENSOR = 'SENSOR'
}
export interface ISystemDeviceType {
id?: number;
name?: string;
description?: string;
... |
b4fe54fc627800eb8e5c0b2754ac71535c92a281 | TypeScript | pgnDataBase/pgnDB | /webclient/src/pipes/error-code.pipe.ts | 2.90625 | 3 | import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'errorCode'
})
export class ErrorCodePipe implements PipeTransform {
transform(value: any, args?: any): any {
return this.errorCodes(value) ? this.errorCodes(value) : "Unknown error";
}
errorCodes(value: string) {
if (value === 'requi... |
627c45d43153d2eb1a036b963d61b553f03d7cb0 | TypeScript | nextools/metarepo | /packages/autoprops/src/check-child-perm.ts | 2.75 | 3 | import BigInt from 'big-integer'
import type { BigInteger } from 'big-integer'
import { getValidPermImpl } from './get-valid-perm'
import { skipToPerm } from './skip-to-perm'
import type { TCommonComponentConfig, TCheckPermFn } from './types'
const getValidChildPerm = (childConfig: TCommonComponentConfig, int: BigInte... |
1fc7c65cd7fd42a7cf88786e0575563590dd1f0a | TypeScript | techwebb/world | /src/app/models/Race.ts | 2.640625 | 3 | import { Human } from './Human';
export class Race{
name:string;
height:number;
fields;
constructor(){
this.fields = [
{name:'gender', type:'choice'},
{name:'height', type:'distribution'}
];
}
getName(){
return 'human';
}
toStr... |
60cf604812e095624263951d2d9ef2a3604474ce | TypeScript | alxrgv/greendata-coding-assignment | /src/components/EmployeesList/config.ts | 2.953125 | 3 | import { format, isDate } from "date-fns";
import { ru } from "date-fns/locale";
import type { ReactNode } from "react";
import type { TableCellProps } from "@material-ui/core";
import type { Employee } from "store/models";
import type { PropTypeExtractor } from "types/global";
import { Gender } from "store/models";
... |
6d242d04ccefa757b7fbd11af44dd6ac0a452dd9 | TypeScript | floorin/apaca-frontend | /src/modules/utils.ts | 2.640625 | 3 | import moment, {Moment} from 'moment';
import nomenclatoare from '@/store/nomenclatoare';
import {getModule} from 'vuex-module-decorators';
const storeNomenclatoare = getModule(nomenclatoare);
export function dateToStringDDMonYYYY(pDate: Moment) {
return moment(pDate).format('D MMM YYYY');
}
export function humanRe... |
1f69027ed39a98fbda76b08b447cb1cdb4b28892 | TypeScript | MichalLytek/type-graphql | /src/helpers/utils.ts | 2.734375 | 3 | export type ArrayElements<TArray extends readonly any[]> = TArray extends ReadonlyArray<
infer TElement
>
? TElement
: never;
export type UnionFromClasses<TClassesArray extends readonly any[]> = InstanceType<
ArrayElements<TClassesArray>
>;
|
0634af4ffa489fdb13a8b2c841894bedd45804f5 | TypeScript | LimMem/cgyro | /app/src/utils/file.ts | 2.921875 | 3 | const fs = require("fs");
const path = require("path");
import handlebars from 'handlebars';
import inquirer from 'inquirer';
import {
warn,
} from './logger'
/**
* 从文件夹读取所有文件路径
* @param dir 文件路径
*/
const getFilesPathWithDir = (dirPath: string) => {
const fsSync = (dPath: string, paths: string[]) => {
fs.re... |
835c39853ebd083a84840c46847f94baec63baed | TypeScript | danielnguyen/mavis-bot | /src/skills/controllers/vj.ts | 2.515625 | 3 | import * as _ from "lodash";
import { Bot, Controller, Message, Conversation} from "botkit";
import { BotkitNLP, NLPMessage } from "../../middleware/botkit-nlp";
import { VideoRequestModel } from "../models/vj";
import { Config } from "../../config"
import { platform } from "os";
import { BaseSkill } from "./_skill";
i... |
32240c780f1152fc2e4cfdbf418a6750a2fdc1a4 | TypeScript | semagarcia/rxjs-t3chfest-reactividad | /01-async-datasources/async-rp-way.ts | 2.671875 | 3 | // T3chFest example
class UserAsync {
private backendUserSrv;
setName(name: string, cb: Function) {
const res = this.backendUserSrv.setUserName(name, cb);
cb(res);
}
setSurname(surname: string, cb: Function) {
const res = this.backendUserSrv.setUserSurname(surname, cb);
... |
152154a4ad8a57c843d959f35df49a96d3aa2e7c | TypeScript | DerrickF/giphyApp | /giphy-app/src/app/components/search/search.reducer.ts | 2.90625 | 3 | import * as SearchActions from './search.actions';
import { Search } from './search.model';
export type Action = SearchActions.All;
// Default state
const defaultState: Search = {
searchTerm: "",
loading: false,
searchResults: []
}
// Reducer
export function searchReducer(state: Search = defaultState, ac... |
4edd90c60df7b3dc91fe5e8dfc2d524eefc847eb | TypeScript | windeko/trg-test | /car-service/src/car/index.ts | 2.609375 | 3 | import {ICar} from "./interfaces";
import {random} from "../helpers";
import {DriverModel} from "../driver/model";
import {Driver} from "../driver";
import {CarModel} from "./model";
export class Car {
private readonly car: ICar;
private constructor(car: ICar) {
this.car = car
}
public static... |
d650280742bf87a30702bdc426e4d16194ed0580 | TypeScript | JhnFbre/InterfacesPrueba | /server/src/controllers/espolControllers.ts | 2.59375 | 3 | import { Request, Response } from 'express';
import pool from '../database'
class EspolControllers{
public async list (req:Request, res:Response){
const espol= await pool.query('select usuario.id_persona, usuario.identificacion, persona.cedula, persona.nombres, persona.apellidos from usuario inner join pe... |
51178f71d5b1fe6c8869fc0184b0b0d3f961342d | TypeScript | riverfeya/lume | /tests/module.test.ts | 2.609375 | 3 | import { assertStrictEquals as equals } from "../deps/assert.ts";
import { getSite, testPage } from "./utils.ts";
Deno.test("build a site with js/ts modules", async () => {
const site = getSite({
test: true,
src: "module",
location: new URL("https://example.com/blog"),
});
await site.build();
tes... |
0f544a0aac8332f82869a9ad2898b2d69179f04c | TypeScript | freddybotteri/nestjs-IoC | /src/domain/vo/UserName.ts | 3.25 | 3 | import { InvalidArgument } from '../errors/InvalidArgument';
export class UserName {
readonly value: string;
constructor(value: string) {
this.value = value;
this.ensureLengthIsLessThan30Characters(value);
}
private ensureLengthIsLessThan30Characters(value: string): void {
if (... |
36afd58f8b729fb67ad6515095e485cd5d19f65f | TypeScript | Mellisah-lisah/Quotes | /src/app/app.component.ts | 2.578125 | 3 | import { Component } from '@angular/core';
import { Quote } from './quote';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
quotes:Quote[] = [
new Quote(1, 'No human is limited', 'Eliud Kipchoge',new Date(2020,3,14)),... |
a61a3f35de3eed856ddd38dfeaf7cd6eab303ebb | TypeScript | lgomezs/Angular | /appEmpleado/src/app/pipes/conversor.pipe.ts | 2.65625 | 3 | import {Pipe,PipeTransform} from '@angular/core';
@Pipe({name : 'conversor' })
export class ConversorPipe implements PipeTransform{
transform(value,por){
let valor1= parseInt(value);
let valor2 = parseInt(por);
let resultado = "La multiplicacion de " + valor1 + " por " + val... |
b7fe40c3e8240e77c7c116c718ab49a9d84d94bd | TypeScript | bela333/melon-bread-event | /src/utils/temporary-set.ts | 3.390625 | 3 | export class TemporarySet<T> implements Set<T> {
private items: Map<T, number> = new Map();
readonly [Symbol.toStringTag] = "TemporarySet";
constructor(public timeout: number) { }
private prune() {
for (const [item, time] of this.items.entries()) {
if (Date.now() > time + this.timeout) {
this.items.delet... |
8d21b3f29d4fc11030dd7f7c37c0f7a6e0663936 | TypeScript | liuxinqiong/react-template | /src/utils/url.ts | 2.609375 | 3 | /* eslint-disable no-useless-escape */
import { parse } from 'qs';
export class UrlUtil {
static isUrl(path: string): boolean {
const reg = /(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/;
... |
bb2cc53a287926ac1cdabf1da5cb6afcacd0982e | TypeScript | Pseudonian/Ipsum | /src/utility.ts | 3.40625 | 3 | import assert from "assert"
import { COPYFILE_FICLONE_FORCE } from "constants"
/**
*
* @param n : A positive integer.
* @returns The sum of the first n integers, according to Gauss' expression.
*/
export const sumLinear = (n:number):number => {
return n * (n + 1) / 2
}
/**
*
* @param n : A positive inte... |
bcc3b3c28d0e6c871a3f8e6dc2d2bff2d39d7cf4 | TypeScript | Ricebal/GroteZwarteDriehoek | /src/classes/fuzzy/FuzzySetRightShoulder.ts | 2.953125 | 3 | import { FuzzySet } from "./FuzzySet";
export class FuzzySetRightShoulder extends FuzzySet {
private _peakPoint: number;
private _leftOffset: number;
private _rightOffset: number;
constructor(peak: number, leftOffset: number, rightOffset: number) {
super(((peak + rightOffset) + peak) / 2);
... |
ef8d08260232a9ff5353f0da7f6e9d57393a22f9 | TypeScript | tatiane-lab/sistema-de-cadastro-digitrack | /cadastro-front/src/app/models/endereco.model.ts | 2.546875 | 3 | export class Endereco {
id: number;
cidade: string;
endereco: string;
bairro: string;
numero: string;
coordenadas: string;
constructor(cidade: string, endereco: string, numero: string, bairro:string, coordenadas: string){
this.bairro= bairro;
this.cidade= cidade;
this.numero = numero;
... |
9972b4fd4534dedc329decdb18c67b7e203b122d | TypeScript | zkochan/packages | /safe-promise-defer/src/index.ts | 2.875 | 3 | import pShare from 'promise-share'
export interface SafePromiseDefer<T> {
(): Promise<T>
resolve: (v: T) => void
reject: (err: Error) => void
}
export default function safeDeferredPromise<T> (): SafePromiseDefer<T> {
let _resolve!: (v: T) => void
let _reject!: (err: Error) => void
const promiseFn = pShar... |
2903f935e426be753f2ae77001551ddb2407c20d | TypeScript | medusajs/medusa | /packages/medusa/src/api/middlewares/with-default-sales-channel.ts | 2.53125 | 3 | import { FlagRouter } from "@medusajs/utils"
import { NextFunction, Request, Response } from "express"
import SalesChannelFeatureFlag from "../../loaders/feature-flags/sales-channels"
import { SalesChannelService } from "../../services"
/**
* Middleware that includes the default sales channel on the request, if no sa... |
846574b2ecce5137c624ea5f16c8bc6513d6df2f | TypeScript | wujiangu/baijiang0.1 | /src/game/Buff/buffs/AddProperty.ts | 2.84375 | 3 | /**
* 增加人物的基础属性
*
*/
class AddProperty extends BuffBase {
public constructor() {
super();
// this.buffInit();
}
/**初始化 */
public buffInit(options:any) {
super.buffInit();
this.options = options;
this.buffData.className = "AddProperty";
... |
73ce5a0df0710db406a1993af77e3bf9d7b6e817 | TypeScript | bumer7721/shop | /src/app/first/first.component.ts | 2.53125 | 3 | import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-first',
templateUrl: './first.component.html',
styleUrls: ['./first.component.css']
})
export class FirstComponent implements OnInit {
name: string;
description: string;
price: number;
isAvailable: boolean;
category: Catego... |
cbe177df1a86995dd4423e054ca42f34912e74d1 | TypeScript | suprithagowda-D/accelerated-news | /src/services/AuthService.ts | 2.609375 | 3 | import { formatHttpError } from '@http-utils/core';
import axios from 'axios';
import { Credentials, User, SignUpInput } from '../models';
import { Storage } from '../utils';
const TOKEN_KEY = 'accessToken';
const SIGN_IN_REDIRECT_KEY = 'signInRedirect';
const getAccessToken = () => {
return Storage.get(TOKEN_KEY);... |
ec77cef62fade9f481baf3bac85d28e83dfadc62 | TypeScript | IfyNdu/united-states-africa | /packages/server/src/domain/video/add-tag.spec.ts | 2.59375 | 3 | import { mockLogger } from 'usa-utils';
import addTag from './add-tag';
import DB from '../../db';
const dbAddTagMock = jest.spyOn(DB.video, 'addTag')
jest.mock('uuid/v1', () => {
return () => 'mock-id';
});
const mockTag = [{
id: 'test video tag'
}]
dbAddTagMock.mockReturnValue(null);
const data = ['test vid... |
8673bddaf2a963ca37e3c11e4007cdf99ae13671 | TypeScript | pillaiashwin/mern-stack-template | /mern-stack/user-service/src/models/UserJwt.ts | 2.578125 | 3 | import jwt from "jsonwebtoken";
import UserJwtInterface from "../interfaces/UserJwt";
class UserJwt implements UserJwtInterface {
id: string;
role: string;
constructor(bearerToken: string, secret: string) {
const data = jwt.verify(bearerToken, secret);
this.id = data._id;
this.role = data.role;
... |
8d3a3482cde56c5bac8e500d1639e7dd542a9926 | TypeScript | mlepecki/Angular6App | /testTS/basicType.ts | 2.515625 | 3 | class BasicType {
name: string = 'Reksio';
age: number = 12;
tablica: string[] = ['Ala', 'kasia'];
dates: Array<Date> = [new Date(), new Date()];
pair: [string, number] = ['PN', 1];
xyz: any = '12';
}
|
744a519382b98dd29f145d66ce93f82537802956 | TypeScript | Studiosity/realm-js | /integration-tests/tests/src/tests/iterators.ts | 2.921875 | 3 | ////////////////////////////////////////////////////////////////////////////
//
// Copyright 2020 Realm Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/li... |
4a6e9ec9880431f6098cb5074c760db32db705ed | TypeScript | alirezashahali/politlling_political_polling | /issue/src/services/solutionsChecker.ts | 3.03125 | 3 | import { RequestValidationError, ArtificialValidationError,
ArtificialRequestValidationError } from '@politling_common/common';
import validator from 'validator'
// returns zero for no error and returns a number for number of solutions that does not have all
// of their requirments
export interface Solution{
title... |
5dbd40a33891d4fcdca0edf41f533a2069197929 | TypeScript | kubikowski/Rabbit | /src/main/angular/src/app/services/web-socket-subscription.model.ts | 2.828125 | 3 | import { SubscriptionLike } from 'rxjs';
/**
* Equivalent to Map<String, Subscription or MultiSubscription>
*/
export interface Subscriptions {
[x: string]: Subscription | MultiSubscription;
}
export class Subscription {
constructor(public connection: SubscriptionLike,
public callback: () => any) ... |
6778d39bbdc7ddeda0b441cc95c683385fe1dec2 | TypeScript | cane4044/fast-dna | /packages/fast-tooling-react/src/navigation/navigation-tree-item.props.ts | 2.890625 | 3 | import { NavigationDataType } from "./navigation.props";
export enum VerticalDragDirection {
up,
down,
center,
}
export interface NavigationTreeItemProps
extends NavigationTreeItemDragSourceCollectedProps,
NavigationTreeItemDropTargetCollectedProps {
/**
* The React children
*/
... |