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 |
|---|---|---|---|---|---|---|
1b83491c8bce5b540f192fee8a01c37fe3aa2a37 | TypeScript | loic5/abaplint | /packages/core/src/abap/types/method_definitions.ts | 2.734375 | 3 | import {MethodDefinition} from "./method_definition";
import {StructureNode} from "../nodes";
import * as Structures from "../3_structures/structures";
import {MethodDef} from "../2_statements/statements";
import {Visibility} from "../4_file_information/visibility";
import {CurrentScope} from "../5_syntax/_current_scop... |
4defdedf728cbd697695def797096f0c06738d49 | TypeScript | Byteclaw/hooks | /packages/use-static-callback/src/index.ts | 3.640625 | 4 | import { useRef } from 'react';
type ExtractArgs<T> = T extends (...args: infer A) => any ? A : undefined;
type ExtractReturn<T> = T extends (...args: any) => infer R ? R : never;
function arraysNotEqual(a: any[], b: any[]): boolean {
const aLength = a.length;
const bLength = b.length;
if (aLength !== bLength)... |
6eea812b38145ab021646fe70695e32767f2b9e8 | TypeScript | wang119c/rarity-frontend | /src/state/rarity/reducer.ts | 2.5625 | 3 | import { createReducer } from '@reduxjs/toolkit'
import { Metadata, updateMetadata } from './actions'
export interface UserState {
readonly metadata: Metadata
}
const initialState: UserState = {
metadata: {
summoners: 0,
barbarians: 0,
bards: 0,
clerics: 0,
druids: 0,
... |
da79c764868688b961e04341925efed59f460bb6 | TypeScript | annezheng/GoogleMapApp | /src/app/marker.service.ts | 2.71875 | 3 | import { Injectable } from '@angular/core';
import { Marker } from './classes/marker';
@Injectable()
export class MarkerService {
markers: Marker[] = [];
labels: string = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
labelIndex: number = 0;
constructor() {
this.load();
}
private load() {
let savedMarkers = local... |
90a8a4a56f6ee4a4a53288c5ed5214b3ceb8f583 | TypeScript | EvdRidder/resource-peek | /src/resource-hover-provider.ts | 2.5625 | 3 | import * as vscode from 'vscode'
import { TextDocument, Position, CancellationToken, ProviderResult, HoverProvider, Hover } from 'vscode'
import * as utils from './utils'
export class ResourceHoverProvider implements HoverProvider {
provideHover(document: TextDocument, position: Position, token: CancellationToken... |
9e6d6861f8eb8597c8667441b0c6d40af8590279 | TypeScript | alexisbssn/SkillTree | /src/model/rules/ParentValidRule.ts | 2.609375 | 3 | import { Rule } from './rule';
import { Ruleable } from '../ruleable';
import { Group } from '../group';
export class ParentValidRule extends Rule{
public Type: string = "ParentValid";
public Parent: Group
public IsValid(subject: Ruleable): boolean{
return this.Parent.isValid();
}
}
|
b01d97a078ff0f5a3564d343552bb5b84eaaa486 | TypeScript | AnGaoLang/simple-vue | /src/@types/index.d.ts | 2.546875 | 3 | declare const sym: unique symbol // 声明唯一的symbol
declare namespace IVOptions {
type El = string
interface Data {
[Symbol.toStringTag]?: any
[sym]?:any
[index: string]: any
}
interface Methods {
[index: string]: () => any
}
}
interface IVueOptions {
el: IVOptions.El
data: IVOptions.D... |
3ed65bfa5e6eb09f68dbabb523ddcba3ec1f40dd | TypeScript | xpfw/xpfw | /packages/data/src/client.ts | 2.53125 | 3 | export interface IUiClient {
client: any
connectTo: (url: string, options?: {
authOptions?: any,
makeAuth?: boolean,
useRest?: boolean,
userStore?: any
/**
* Pass the dbStore to get realtime updates
*/
dbStore?: any
/**
* Realtime Updates will only be fetched for collectio... |
1e6eaf236fe75d807d52a508c5332352de6920c6 | TypeScript | alefemoreira/perfil-api | /src/app/models/UserSchema.ts | 2.796875 | 3 | import mongoose, { Document, Model } from "mongoose";
import jwt from "jsonwebtoken";
import bcrypt from "bcrypt";
const userSchema = new mongoose.Schema({
username: String,
password_hash: String,
name: String,
github_username: String,
image: String,
});
userSchema.methods.checkPassword = function (password... |
7e8d7c0ee85c9afef1ae8acd91af60eeb9ac8132 | TypeScript | kkjasoncheung/shopify-challenge | /src/app/search/search.component.ts | 2.65625 | 3 | import { Component, OnInit, Output } from '@angular/core';
import { GithubService } from '../services/github.service';
import { Repo } from '../services/Repo';
import { FormControl, Validators } from '@angular/forms';
import { FavouritesService } from '../favourites.service';
@Component({
selector: 'app-search',
t... |
ef424658b7da4693da78e490c9b953cee7f02c50 | TypeScript | joseanavarro/Angular4_test | /src/app/services/gnomes/gnomes.service.ts | 2.640625 | 3 | import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import 'rxjs/add/operator/timeout';
import { Observable } from 'rxjs/Observable';
import { HabItem } from '../../models/HabItem';
import { AppConstant } from '../app-constant/app-constant.service';
@Injectable()
export class GnomesServic... |
897fd26ea596e1228a76ffe3e9d8017fffb9910b | TypeScript | mikedevelops/adventure-factory | /src/Manager/LoadGameStateManager.ts | 2.734375 | 3 | import { GameState } from "../State/Game/GameState";
import { GameStateSerialiser } from "../Service/GameStateSerialiser";
import { SceneHydrator } from "../Hydrators/SceneHydrator";
import { Scene } from "../Entities/Scene";
export class LoadGameStateManager {
public async load(serialisedState: string): Promise<Gam... |
9b632a37734090f9b2879cfd6d0810af98f8a490 | TypeScript | rifanid98/eureka-educate | /src/main/repositories/categories.test.ts | 2.53125 | 3 | import { expect } from 'chai';
import sinon from 'sinon';
import faker from 'faker';
import CategoriesRepository from './categories';
import { Category } from '../types';
const Models = require('../models/index.js');
describe('CategoriesRepository', () => {
const stubValue: Category = {
id: faker.datatype.numbe... |
3af3d6758ceffd62080bd311eb66f7dcc902ee61 | TypeScript | tinotjgithub/Generate | /src/utility/sorting/comparers/standardisationsetup/stdorginalsessioncomparer.ts | 2.859375 | 3 | import comparerInterface = require('../../sortbase/comparerinterface');
import comparerhelper = require('../../comparerhelper');
/**
* This is a Centre number comparer class and method
*/
class StdOrginalSessionComparer implements comparerInterface {
/**
* Comparer to sort standardisation sestup script id... |
cdaf3d2b0736a868d70cee57c292fcce0ddd0c93 | TypeScript | UCSDTESC/Check-in | /src/client/reducers/UserEvents.ts | 2.515625 | 3 | import { handleActions } from 'redux-actions';
import { ActionType } from 'typesafe-actions';
import { replaceUserEvents, addUserEvent } from '~/actions';
import * as Types from '~/actions/types';
import { UserEventsState } from './types';
const initialState: UserEventsState = {};
export default handleActions({
[T... |
3256858a615e8278efdd7403554394c57cb286b3 | TypeScript | chriswburton/huggg-api | /src/app.controller.e2e.spec.ts | 2.59375 | 3 | import request from 'supertest';
import { Test } from '@nestjs/testing';
import { INestApplication } from '@nestjs/common';
import { AppModule } from './app.module';
import brands from './brands.json';
import { StoreInterface } from './interfaces/store.interface';
describe('AppModule', () => {
let app: INestApplicat... |
ebdbf256de209785f6df5a273864a2291d644bb1 | TypeScript | mkissarli/book-keeping | /src/app.ts | 2.71875 | 3 | import express from 'express';
import bodyParser from 'body-parser';
import db from 'mongoose';
import { add_appointment, get_filtered_appointments } from './api/counsellors/controller';
import { counsellor_model } from './api/counsellors/model';
// Create a new express application instance
const app: express.Applic... |
40a82d9b579511b273cc053f340fb4b8cfa8ff9f | TypeScript | vovanmozg/few-hundred | /src/store/appState/setTopicsSettings.ts | 2.765625 | 3 | import type { TAppState, TTopic } from 'app/types/TAppState';
export function setTopicsSettings(
set: (partial: (state: TAppState) => Partial<TAppState>) => void,
) {
return (isEnabled: boolean, topic: TTopic): void =>
set((state: TAppState) => {
const settings = {
...state.settings,
topi... |
6c0f497985926476d17f2f1ece582b5a589b7782 | TypeScript | lanemt/definitelytyped.github.io | /types/labeled-stream-splicer/labeled-stream-splicer-tests.ts | 2.53125 | 3 | import splicer = require("labeled-stream-splicer");
import * as stream from "stream";
const readable = new stream.Readable();
const duplex = new stream.Duplex();
const writable = new stream.Writable();
let pipeline: splicer = splicer();
pipeline = splicer([readable, duplex, writable]);
pipeline = splicer(["r", readab... |
769920350923744097fdd20f9cf641440e2a7b74 | TypeScript | petedarling/test-for-vscode | /angular5-play/Agtestapp/src/app/mytest.component.ts | 2.515625 | 3 | import { Component, Input } from '@angular/core'
@Component({
selector: 'mytest',
templateUrl: 'mytest.component.html',
styles: [`
.glyphicon-thumbs-down {
color: red;
}
.glyphicon-star {
color: orange;
}
`]
})
export class MyTestComponent{
@... |
4c764380f826a91be6687ef377385ee69ede6c18 | TypeScript | reg-viz/storycap | /packages/storycap/src/client/with-screenshot.ts | 2.65625 | 3 | import { StoryKind, makeDecorator } from '@storybook/addons';
import { ScreenshotOptions } from '../shared/types';
import { triggerScreenshot } from './trigger-screenshot';
export interface WithScreenshot {
/**
*
* @deprecated
* You can use `addParameters` instead of call decorator as a function with Story... |
80488d4306974c7b7a34606a19102a27991c5a5f | TypeScript | klapouchy/frontend-developer-test | /source/utilities/FeeldAPI.ts | 3.125 | 3 | import axios, { AxiosError, AxiosRequestConfig, Method } from "axios";
import MockAdapter from "axios-mock-adapter";
import users from "./demoUsers";
import { UserDecision } from "./Types";
// Feeld Developer Test API url to get 20 random users
const USERS_URL = "https://fld-devtest-api.herokuapp.com/api/v1/users";
... |
b076011c4a575921e7103349ebc17c85232c9d60 | TypeScript | galmail/va-experiment | /src/nlp/weatherEngine.ts | 3.109375 | 3 | import * as ip from "what-is-my-ip-address";
import { queryByLocation, queryByGeoLocation } from "../apis/weather";
import { getLocationByIP } from "../apis/ip2location";
import { knownPlaces } from "../consts";
export const getWeatherData = async (words: string[]) => {
let city = await findLocation(words);
const ... |
d3fbf233e214ccc09bb119d027b3a73602d7f5e9 | TypeScript | eternal7s/typescript-study | /chapter6/src/IterableUsingGenerator-test.ts | 2.59375 | 3 | import {IterableUsingGenerator} from "./IterableUsingGenerator";
for(let item of new IterableUsingGenerator([1, 2, 3]))
console.log(item);
for(let item of new IterableUsingGenerator(['hello', 'world', '!']))
console.log(item);
|
21f917d909a30213fe2d6c22dadb2517f4c221e6 | TypeScript | hinstw/h-rebasor | /src/string.ts | 2.640625 | 3 | export function replaceText(text: string, oldSubString: string, newSubText: string): string {
return text.split(oldSubString).join(newSubText);
} |
29d4130fee63759bd778918aab36186c50f63771 | TypeScript | micomoko/sample | /src/app/core/models/domain/location.domain.ts | 2.734375 | 3 | import { Injectable } from '@angular/core';
@Injectable()
export class LocationDomain {
private static readonly location = [
{
locationID: 1,
locationName: 'Makati City'
},
{
locationID: 2,
locationName: 'Quezon City'
},
{
locationID: 3,
locationName: 'Pasig C... |
f2c213703635e2b9fd7b4824a075be7313a0a4e6 | TypeScript | uiftikhar/ngx-lightning | /projects/ngx-lightning/src/lib/tabs/tabs.ts | 2.578125 | 3 | import { AfterContentInit, Component, ContentChildren, EventEmitter, Input, Output, QueryList } from '@angular/core';
import { isInt, toBoolean } from '../util/util';
import { NglTabDirective } from './tab';
@Component({
selector : 'ngl-tabs',
templateUrl: './tabs.html'
})
export class NglTabsComponent implement... |
98d479c542ac70407bf7d4eb2156007fca172d07 | TypeScript | Andrey-Matos/track-correios | /src/utils/address.ts | 2.53125 | 3 | import type { Unidade } from './';
export function getAddress(unidade: Unidade) {
if (!unidade) return '';
const {
nome,
tipo,
endereco: { cidade, uf },
} = unidade;
return [tipo, nome, cidade, uf].filter(x => x).join(" - ");
}
|
fc55da16e1551fdb1088f856682a409f4b0cbdf6 | TypeScript | rashedm/lfs_contracts | /src/contracts/requests/PutUser.request.ts | 2.671875 | 3 | import * as yup from 'yup';
export class PutUserRequest {
id:string;
name:string;
roles:PutUserRequestRole[];
}
export class PutUserRequestRole {
id:string;
}
export const PutUserRequestSchema = yup.object<PutUserRequest>({
id: yup.string().required(),
name: yup.string().required(),
roles... |
52d967932fdc4e8bc2e03ce9ad9c763b38b778da | TypeScript | jaked/programmable-matter | /src/util/Signal/Signal.test.ts | 2.8125 | 3 | import * as Immutable from 'immutable';
import * as Immer from 'immer';
import Signal from './index';
import Try from '../Try';
import { bug } from '../bug';
const err = new Error('fail');
describe('constant', () => {
describe('ok', () => {
const s = Signal.ok(7);
it('is ok', () => {
expect(s.get()).... |
fc3306409c791e71354cdd561f9de4b8bebdd85f | TypeScript | shynome/uapi | /src/uapi.ts | 2.71875 | 3 | import { ServerRequest, delay } from "./deps.ts";
import { Router } from "./router.ts";
import * as NotFoundModule from "./404.ts";
import { fillHost } from "./utils.ts";
/**api config. now nothing can be config */
export interface Config {
/**api 超时时间, 设为 0 则不限制超时时间 */
timeout?: number;
}
export interface Handle... |
1616525cf73eba7ce31afaa3f2538e081f0b1ef9 | TypeScript | romain78160/NestJs | /src/todos/todos.service.ts | 2.984375 | 3 | import { Injectable, NotFoundException } from '@nestjs/common';
import { CreateTodoDto, UpdateTodoDto } from './Dto/todo.dto';
import { Todo } from './interfaces/todo.interface';
@Injectable()
export class TodosService {
todos: Todo[] = [
{
id: 1,
title: 'Titre todo',
description: 'faire ce tod... |
0911fa597f725613aae7eb20db869cba18f7b67f | TypeScript | Amazing-Web-Study/B-trello-frontend | /src/api/api.ts | 2.984375 | 3 | import { useReducer, useEffect } from 'react'
function reducer(state:any, action:any) {
switch (action.type) {
case 'LOADING':
return {
loading: true,
data: [],
error: ''
}
case 'SUCCESS':
return {
l... |
37bdf2750b9ec2201ebe120d6d93e36b1c3d6f42 | TypeScript | atomic-package/scrollspy | /src/ts/component/Target.ts | 2.828125 | 3 | /**
* ScrollSpy Target View Class
* @public
* @param option
**/
let _created_scroll_spy_target_num: number = 0;
export class Target {
constructor(
public id: number,
public triggerId: number,
public idName: string,
public className: string,
public coordinate: number,
public node: any
) ... |
f9353db129483cc7c19018dafae39a046cf0f7c2 | TypeScript | MarkProvanP/racetrack2 | /src/server/error-handling.ts | 2.515625 | 3 | import { Emailer } from './emailer';
export function errorHandling(emailer: Emailer) {
process.on('unhandledRejection', (reason, promise) => {
console.error('Unhandled rejection!', reason, promise);
emailer.sendUnhandledRejectionEmail(reason, promise)
.catch(err => {
console.error... |
3ba7940d0da8d8e69fb9b8225784866331a7e5a7 | TypeScript | nonoroazoro/typescript-react-boilerplate | /src/typings/json.d.ts | 3.234375 | 3 | /**
* JSON scalar.
*/
type JSONScalar = boolean | number | string | null;
/**
* JSON value.
*/
type JSONValue = JSONArray | JSONObject | JSONScalar;
/**
* JSON object.
*/
type JSONObject = {
[key in string]?: JSONValue
};
/**
* JSON array.
*/
interface JSONArray extends Array<JSONValue> { }
|
da075b54ba2756057dd6917cbb842b89f4bea7ad | TypeScript | mabiamabia/reditus | /pagarme_integration/pagarmeTransactionStatus.ts | 2.6875 | 3 | export enum PagarmeTransactionStatus {
processing = "processing",
authorized = "authorized",
paid = "paid",
refunded = "refunded",
waitingPayment = "waiting_payment",
pendingRefund = "pending_refund",
refused = "refused",
chargedback = "chargedback",
analyzing = "analyzing",
pendingReview = "pending... |
4582968d5d2979c18f04bd71abd131de126ae3f6 | TypeScript | khadija-el/portfolio | /copy.script.ts | 2.53125 | 3 | import * as fs from 'fs';
async function main() {
try {
const content = await fs.promises.readFile(`${__dirname}/docs/index.html`, 'utf8');
const cname = await fs.promises.readFile(`${__dirname}/CNAME`, 'utf8');
await fs.promises.writeFile(`${__dirname}/docs/404.html`, content);
await fs.promises.wr... |
2639d7363b5d890587c28556c4db0067f258214b | TypeScript | KonradKlimczak/test | /src/App.ts | 2.640625 | 3 | import { Box } from "./Box";
import { BoxKeeper } from "./BoxKeeper";
import { Cube } from "./Cube";
export function App(boxX: number, boxY: number, boxZ: number, ...cubes: number[]) {
const box = new Box(boxX, boxY, boxZ);
const mrBob = new BoxKeeper(
box,
cubes.map((amount: number, rawCubeSize: number): ... |
788a661f9cbe7d30acd4f17131296e3ea7b4449c | TypeScript | un-loop/wareentryresourceguide | /website/src/Reducers/RootReducer.ts | 2.71875 | 3 | import { assign } from "lodash";
import { AnyAction, Reducer } from "redux";
import { TypeKeys } from "../Actions";
import { SiteState } from "../State/SiteState";
import { Organization } from "../State/Organization";
import { Set } from "immutable";
export const RootReducer: Reducer<SiteState> = (state: SiteState, ac... |
659efd73f13537d375723a049d97be053b9fa8ce | TypeScript | admorenog/rhapsody | /core/system/console/repl/Commands.ts | 3.078125 | 3 | import Command from './Command';
import ExitCommand from './commands/ExitCommand';
import HelpCommand from './commands/HelpCommand';
import SaveCommand from './commands/SaveCommand';
import LoadCommand from './commands/LoadCommand';
import EditCommand from './commands/EditCommand';
export default class Commands
{
pr... |
d2f2447261c3739fef600a63afba649140f05eb9 | TypeScript | PixelGore/React | /src/Components/Common/Validators/Validators.ts | 3.34375 | 3 | //Field is Required
export const required :FieldValidatorType= (value)=> {
if (value) return undefined;
return 'Field is required';
}
//Exceeded max numbers of symbols
export const maxLengthCreator = (maxLength:number):FieldValidatorType => (value) => {
if (value.length > maxLength ) return `Exceeded max n... |
efd20907b7f4be051914a6eb6e5379715d73c557 | TypeScript | GeoffreyPlichard/puissance4 | /src/app/board/board.service.ts | 2.765625 | 3 | import { Injectable, ViewChild, TemplateRef } from '@angular/core';
import { Cell, BoardConstants } from './board';
import { PlayerService } from '../player/player.service';
import { PlayerTokens, Player } from '../player/player';
@Injectable({
providedIn: 'root'
})
export class BoardService {
public board = []... |
18cb4cfee68a6ff23338ba90b1181619ab2089f5 | TypeScript | CheezItMan/typescript-syntax | /tuple.ts | 4.28125 | 4 | // Kind of like an array where specific elements have specific types
// why not use an array of objects...
// An object
const drink = {
color: 'brown',
carbonated: true,
sugar: 40,
};
// An array
// const pepsi = ['brown', true, 45];
// Tuple
const pepsi: [string, boolean, number] = ['brown', true, 45];
// err... |
533c94773715aa8991e2088c9e66f77d95c072b1 | TypeScript | tcgdex/cards-database | /data/Diamond & Pearl/Secret Wonders/36.ts | 2.59375 | 3 | import { Card } from '../../../interfaces'
import Set from '../Secret Wonders'
const card: Card = {
name: {
en: "Plusle",
fr: "Posipi",
},
illustrator: "Masakazu Fukuda",
rarity: "Rare",
category: "Pokemon",
set: Set,
dexId: [
311,
],
hp: 60,
types: [
"Lightning",
],
stage: "Basic",
abilities: ... |
f2e7c05e8bab24953ed36d4d2ea9e48eea921c4d | TypeScript | sarahlawrence/topaz | /client/src/store/reducer.ts | 2.640625 | 3 | import { createReducer, createAction } from "@reduxjs/toolkit";
const initialState = {
current: "",
};
const setProfile = createAction<string>("set_profile");
export const profileReducer = createReducer(initialState, (builder) => {
builder.addCase(setProfile, (state, action) => {
state.current = action.payloa... |
c2b34753dc49fde21dfc9de29cc5b1fd76d46891 | TypeScript | souvenir-lee/nyam-nyam_client | /src/lib/auth.ts | 2.5625 | 3 | import * as SecureStore from 'expo-secure-store';
import { TextPropTypes } from 'react-native';
import { decode } from 'js-base64';
import { fork, take, put, call, select } from 'redux-saga/effects';
import {
invalidToken,
signinError,
signinSuccess,
validToken,
} from '@base/modules/signin';
import * as authA... |
7ed177c15ec0fd32616c7a27ecce24bcdc98b597 | TypeScript | asdf148/deploy_test | /src/comment/comment.controller.ts | 2.53125 | 3 | import { Body, Controller, Delete, Get, Headers, HttpStatus, Param, Post, Put, Res } from '@nestjs/common';
import { ApiOkResponse, ApiOperation, ApiTags } from '@nestjs/swagger';
import { Response } from 'express';
import { Comment } from 'src/entity/comment.entity';
import { CreateComment } from 'src/entity/comment_d... |
d72c2a5ff8dba57e95e3fdbb267e08a55b779567 | TypeScript | airdcpp-web/airdcpp-webui | /src/utils/FileUtils.ts | 2.859375 | 3 | export const getFilePath = (fullPath: string): string => {
if (isDirectory(fullPath)) {
return fullPath;
}
return fullPath.replace(/[^\\/]*$/, '');
};
export const getFileName = (fullPath: string): string => {
return fullPath.replace(/^.*[\\/]/, '');
};
export const isDirectory = (fullPath: string): bool... |
0de5389d2e33cac48409aa449c1767133e7ca089 | TypeScript | valtikamore/cards | /src/redux/registrationReducer/registrationReducer.ts | 2.84375 | 3 | import {authAPI} from "../../api/auth-api";
export const SUCCESS = 'registrationReducer/SUCCESS' as const
export const LOADING = 'registrationReducer/LOADING'as const
export const ERROR = 'registrationReducer/ERROR'as const
type addedUserType = {
created: string
email: string
isAdmin: boolean
... |
1d76b696223fcf84b7ea2f3d74737de60db5293d | TypeScript | adalfonso/electron_music | /tests/Logger.test.ts | 2.984375 | 3 | import { Logger as Sut } from "../src/renderer/Logger";
import { expect } from "chai";
describe("Logger", () => {
["log", "info", "warn", "error"].forEach(level => {
it(`Logs for a ${level} level`, () => {
const results = {};
const context = { cat: 23 };
const sut = new Sut(getLog(results));
... |
c453cf17cbb11c18b8a65b64bbb976ff9c1fefac | TypeScript | gustavoafranca/letter-santaclaus | /src/controller/UserController.ts | 2.53125 | 3 | import {Request, Response} from 'express'
import { getRepository } from 'typeorm'
import User from '../models/User'
import UserView from '../views/UserView'
export default {
async create(req: Request, res: Response){
const user = <User> req.body
try {
const repository = getRepository(User)
const... |
ab80c17c455dadafe3b6dcb8a9d71b7d33950f0e | TypeScript | pogotc/Monte-Carlo-Tree-Search | /src/MCTS.test.ts | 2.9375 | 3 | import MCTS from './MCTS';
import { ThreeInARowGameState } from './testHelper';
import TicTacToeGameState from './example/tictactoe/TicTacToeGameState';
describe('MCTS', () => {
// let mcts;
test('Test run for a single move', () => {
const mcts = new MCTS();
const gameState = new ThreeInARowGa... |
17994f380c9d7a8c86015743f2c3c8fba09da956 | TypeScript | fonnesbeck/workbench | /ui/src/app/cohort-search/gender-chart/gender-chart.component.ts | 2.859375 | 3 | import {ChangeDetectionStrategy, Component, Input} from '@angular/core';
import {List, Map} from 'immutable';
@Component({
selector: 'app-gender-chart',
templateUrl: './gender-chart.component.html',
styleUrls: ['./gender-chart.component.css'],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class G... |
2f5bc8db309f217b1ea0edfe8da5c16c5aaf6125 | TypeScript | yume-chan/observe-state | /src/scope/action.ts | 2.5625 | 3 | import { ScopeManager } from ".";
import { Diff, mergeDiff } from "../diff";
import { Observer, ObserverCallback } from "./observer";
import { ObjectPaths } from "./pathTrie";
interface ActionState {
global: boolean;
diffList: Diff[];
trackUndo: boolean;
undoList: Diff[];
diffPaths: ObjectPaths;
obser... |
7de848b801eb8bdb8e5f4aa0ddf2d69cbe5c3f40 | TypeScript | kal93/terminus-ui | /src/lib/src/services/validation-message/validation-message.service.ts | 2.8125 | 3 | import { Injectable } from '@angular/core';
import { format } from 'date-fns';
import { emailMessage } from './../../utilities/regex/email.regex';
import { creditCardMessage } from './../../utilities/regex/credit-card.regex';
import { passwordMessage } from './../../utilities/regex/password.regex';
// TODO: The cons... |
38bb9c3cc079c83d649f6784d83517a9c6ea1b24 | TypeScript | Xan0C/curbl-ecs | /example/src/systems/velocitySystem.ts | 2.671875 | 3 | import { System } from '@curbl/ecs';
import { Components, Position, Velocity } from '../components';
import { ecs } from '../ecs';
const SHAPE_HALF_SIZE = 200;
@ecs.System(Components.POSITION, Components.VELOCITY)
export class VelocitySystem extends System {
constructor(private readonly canvasWidth: number, priva... |
b15d5df0c4bf4ecb10d05f09015ada95c17a35ab | TypeScript | radial-color-picker/angular-color-picker | /projects/radial-color-picker/src/lib/helpers/constants.ts | 2.828125 | 3 | export const Cache = {
sin90: Math.sin(270 * Math.PI / 180),
sin180: Math.sin(180 * Math.PI / 180),
sin270: Math.sin(90 * Math.PI / 180),
cos90: Math.cos(270 * Math.PI / 180),
cos180: Math.cos(180 * Math.PI / 180),
cos270: Math.cos(90 * Math.PI / 180)
};
export const Quadrant = {
I: 'q1',
II: 'q2',
I... |
07aaffd7e20400d78e8fe1cf0ad3f2f9d598fd6f | TypeScript | geunheejung/ts_tutorial | /src/genericExample/generic1.ts | 4.3125 | 4 | // generic 사용 이유 - Type을 동적으로 할당하고 싶을 때 사용
// 같은 형태이지만 Type만 다를 경우 코드가 반복되서 생성됨
// 이럴 때 제네릭을 사용하여 타입을 동적으로 할당받자.
// 장점: any로 하면 any와 관련된 헬퍼, 도우미들이 제대로 작동안하는반면 제네릭은 잘 작동
/*
function hello<T>(message: T): T {
return message;
}
hello<string>('Geuni');
hello<number>(35);
const strArr: string[] = [];
const strArr2: Arra... |
8487e458aa12a3a5e6844b218196e756edf055da | TypeScript | m4-used-rollout/pokemon-hud | /src-server/rom-reading/tools/gen2lzdecmp.ts | 2.796875 | 3 | /**
* Pokemon Gen 2 sprite decompressor Source:
* https://github.com/pret/pokemon-reverse-engineering-tools/blob/master/pokemontools/lz.py
* (and gfx.py for flatten())
* Originally ported to Java by Dabomstew
*
*/
namespace Tools {
const LZ_END = 0xFF;
const INITIAL_BUF_SIZE = 0x1000;
const bit_flipp... |
f2bcf8d2bb220bf4f4c2926a2f8e59170f4fd3c5 | TypeScript | TatsuyaYamamoto/dl-code.web.app | /app/domains/AuditLog.ts | 2.53125 | 3 | import firebase from "firebase/app";
type FieldValue = firebase.firestore.FieldValue;
export enum LogType {
ACTIVATE_WITH_DOWNLOAD_CODE = "ACTIVATE_WITH_DOWNLOAD_CODE",
DOWNLOAD_PRODUCT_FILE = "DOWNLOAD_PRODUCT_FILE",
PLAY_PRODUCT_FILE = "DOWNLOAD_PRODUCT_FILE",
}
export interface AuditLogDocument {
// who
... |
ae3ca9d6685d3bedc038db3dbc2b5c71f670988a | TypeScript | calirvine/restaurant-demo | /backend/src/controllers/session.ts | 2.578125 | 3 | import { PrismaClient, Profile, User } from '@prisma/client'
import { Request, Response } from 'express'
const prisma = new PrismaClient()
export interface IReqWithSession extends Request {
session: {
userId: string
role: string
} | null
}
export async function getSession(
sessionId?: string,
): Promis... |
890494b21e38dde61b157186fc24e37b8c5926c8 | TypeScript | condottieros/eltex-task | /index.ts | 3.53125 | 4 | /** Получение случайного числа в диапазоне 0-62 */
const getRandom = () => Math.floor(Math.random() * 62);
/** Преобразование случайного кода в код символов латиницы и цифр */
const randomToCode = (code: number) => {
if (code > 35) return code + 61;
if (code > 9) return code + 55;
return code + 48;
};
const ran... |
bbc06566f6fffb8b22039ca504d0d8627be248ca | TypeScript | Subhashsab34/three.ts | /src/core/Face3.ts | 3.046875 | 3 | import { Color } from '../math/Color';
import { Vector3 } from '../math/Vector3';
/**
* @author mrdoob / http://mrdoob.com/
* @author alteredq / http://alteredqualia.com/
*/
export class Face3 {
a : number;
b : number;
c : number;
_id : number;
normal : Vector3;
vertexNormals : Array<Vector3>;
color : Color... |
2acd31f19a5f7bc7cab4912e161371e4c23c104f | TypeScript | volsu-infosystem/service-schedule | /backend/src/profile/dto/create-profile-base.dto.ts | 2.609375 | 3 | import {
IsEmail,
IsNumber,
IsOptional,
IsString,
Length,
} from 'class-validator';
export class CreateProfileBaseDto {
@IsOptional()
@IsString()
@Length(2, 64)
readonly firstName?: string;
@IsOptional()
@IsString()
@Length(2, 64)
readonly lastName?: string;
@IsOptional()
@IsString()
... |
b576e8ecfaccd5d65f84cb0631e4c247126a91e6 | TypeScript | ebkr/r2modmanPlus | /src/providers/generic/zip/ZipProvider.ts | 2.546875 | 3 | import ProviderUtils from '../ProviderUtils';
import ZipBuilder from './ZipBuilder';
import ZipEntryInterface from './ZipEntryInterface';
export default abstract class ZipProvider {
private static provider: () => ZipProvider;
static provide(provided: () => ZipProvider): void {
this.provider = provided... |
81c1e66edfb89d2871a924696649d3efbd669867 | TypeScript | JordanCervantes/redditclone | /src/resolvers/hello.ts | 2.71875 | 3 | import { Resolver, Query } from "type-graphql";
@Resolver()
export class HelloResolver{
@Query(() => String)
hello(){
return "hello world"
}
@Query(() => String)
bye(){
return "good bye"
}
@Query(() => String)
shaka(){
let shaka = 'shaka breh';
return sha... |
3ad821833428795f62cd6c559adb9442c09144b4 | TypeScript | scen98/online-ujsag | /amp/js/objects/article.ts | 2.640625 | 3 | import * as caller from "./caller.js";
import * as ti from "./tokenInstance.js";
export class Article {
id: number;
title: string;
lead: string;
authorId: number;
date: Date;
imgPath: string;
columnId: number;
text: string;
isLocked: boolean;
lockedBy: number;
state: number;
... |
871fdced2add925e229f4e294f9faaecc5180a28 | TypeScript | EnzoDiazDev/discord-interactions | /src/interactions/CommandInteractionData.ts | 2.578125 | 3 | import ComponentType from "./ComponentType";
export default interface CommandInteractionData {
/** The ID of the invoked command */
id:string;
/** The name of the invoked command */
name:string;
/** Converted users + roles + channels */
resolved?:object;
/** The params + values from the ... |
fec020ffb60774260599e412b196c92dad1b663a | TypeScript | hyunouknam/congressional-district-generator | /frontend/src/models/geometry.ts | 2.765625 | 3 | import * as L from 'leaflet';
import * as Topo from 'topojson-client';
// Holds all objects that have unique ids, as well as a few extra mappings
//
// NOTE: this shouldn't be accessed directly outside of geometry.ts, should be accessed from maphandler instead
//
// NOTE: maphandler will initialize this when map data... |
08687b332fa55566d2731798214c7214af8c82b4 | TypeScript | alfie1104/nuber-eats-backend | /src/users/users.service.spec.ts | 2.75 | 3 | import { Test } from '@nestjs/testing';
import { getRepositoryToken } from '@nestjs/typeorm';
import { Verification } from 'src/common/entities/verification.entity';
import { JwtService } from 'src/jwt/jwt.service';
import { MailService } from 'src/mail/mail.service';
import { Repository } from 'typeorm';
import { User... |
f95cd2947feee7e4f18a63a7111efdf86104eb9d | TypeScript | yannduran/tripod | /Tripod.Web/app/_common/directives/ModelContrib.ts | 2.515625 | 3 | 'use strict';
module App.Directives.ModelContrib {
export var directiveName = 'modelContrib';
export class Controller {
hasError = false;
hasSuccess = false;
hasSpinner = false;
error: any = {};
ngModelController: ng.INgModelController;
static $... |
788110f77b086b932d2daf93737b386869e7725e | TypeScript | dmytrolyn/mmorpg-next-client | /store/profile/spenders/spenders.actions.ts | 2.640625 | 3 | import { SpenderSchema } from 'utils/contentTypes'
import Types, { SpenderErrorType } from './spenders.types'
interface SetSpendersAction {
type: Types.SET_SPENDERS
data: Array<SpenderSchema>
}
export const setSpendersData = (data: Array<SpenderSchema>): SetSpendersAction => ({
type: Types.SET_SPENDERS,
... |
50157e1c01538009dee0804a058243e2e70bbd9c | TypeScript | 700software/ts-code-generator | /src/tests/testHelpers/methods/class/runClassDefinitionTests.ts | 2.5625 | 3 | import * as assert from "assert";
import {ClassTestStructure} from "./../../testStructures";
import {ClassDefinition} from "./../../../../definitions";
import {runBaseDefinitionTests, runNamedDefinitionTests, runExportableDefinitionTests, runDecoratableDefinitionTests, runTypeParameteredDefinitionTests,
runAmbient... |
10caa0e0fed2c04c059b1740a536178d02f628da | TypeScript | nilshartmann/typescript-intro | /.material/src_de/_variants/60_z_mapped_types.ts | 3.5 | 4 | export default undefined;
type Employee = {
name: string;
salary: number;
age: number;
department: string;
};
// type ValidatedEmployee = {
// [k in keyof Employee]?: boolean
// }
type ValidationResult<TYPE> = {
[k in keyof TYPE]: boolean;
};
type OptionalType<TYPE> = {
[k in keyof TYPE]?: TYPE[k];
}... |
f9c97467b2e2139d98951799ed9555497c388e01 | TypeScript | ionic-team/ionic-v3 | /src/components/infinite-scroll/infinite-scroll.ts | 2.875 | 3 | import { Directive, ElementRef, EventEmitter, Input, NgZone, Output } from '@angular/core';
import { Content, ScrollEvent } from '../content/content';
import { DomController } from '../../platform/dom-controller';
import { assert } from '../../util/util';
/**
* @name InfiniteScroll
* @description
* The Infinite Sc... |
5a1b805177c66139e55b4e9ba76db5d2c266a75b | TypeScript | pastelmind/stryker | /packages/react-mutator/test/unit/mutators/StateMutationMutator.spec.ts | 2.65625 | 3 | import { expect } from 'chai';
import ExpectMutation from '@stryker-mutator/mutator-specification/src/ExpectMutation';
import StateMutationMutator from '../../../src/mutators/StateMutationMutator';
import { verifySpecification } from '../../helpers/mutatorAssertions';
function StateMutationMutatorSpec(name: string, e... |
e08e7681096ae3d3f1d1e0f97c7a4c505fa4d310 | TypeScript | digital-thinking/acep | /src/test/javascript/spec/app/entities/asset/asset.service.spec.ts | 2.625 | 3 | /* tslint:disable max-line-length */
import axios from 'axios';
import sinon from 'sinon'
import AssetService from '@/entities/asset/asset.service';
import {Asset} from '@/shared/model/asset.model';
import {Currency} from '@/shared/model/enumerations/currency.model';
import {AssetType} from '@/shared/model/enumeration... |
889e9bfe7296651fd8f2c7b0296fba1c708732b0 | TypeScript | dobernike/dobernike.github.io | /javascript/pixel-hunter/js/view/stats-view.ts | 2.84375 | 3 | /* eslint-disable object-curly-spacing */
import AbstractView from './abstract-view';
import HeaderView from './header-view';
import countLives from '../data/count-lives';
import { statistic } from '../data/data';
import { calcSummaryScores, calcCorrect, calcFast, calcSlow } from '../data/calc-scores';
const header ... |
f216210ce17e048e8a5010998ca1da1396a8cef1 | TypeScript | kennetvu/chakra-ui | /packages/styled-system/src/utils/breakpoint.ts | 2.71875 | 3 | import { Dict, breakpoints, isArray } from "@chakra-ui/utils"
function normalizeBreakpointObject(bps: Dict) {
let result = [] as any
result = Object.values(bps)
for (const key in bps) {
result[key] = bps[key]
}
return result
}
function normalizeBreakpointArray(bps: any[]) {
const result = bps
for (l... |
cafc48379fdffafddd7e6dc126df906c7587e553 | TypeScript | erickzhao/roller | /src/utils/octokit.ts | 2.59375 | 3 | import * as GitHub from '@octokit/rest';
let octokit: GitHub;
/**
* Returns an authenticated Octokit.
*
* @returns {Promise<GitHub>}
*/
export async function getOctokit(): Promise<GitHub> {
octokit = octokit || new GitHub({
auth: process.env.GITHUB_TOKEN,
});
return octokit;
}
|
db1dfbd2ddf50e42f6f9d55841565a0e983c3ee6 | TypeScript | jmajurel/cod19GP | /src/repositories/doctorRepository.ts | 2.640625 | 3 | import IDoctorRepository from "./interfaces/doctorRepoInterface";
import Doctor from "../models/doctor";
import { Db, ObjectId, InsertOneWriteOpResult } from "mongodb";
export default class DoctorRepository implements IDoctorRepository {
private readonly dbClient: Db;
constructor({ dbClient }: { dbClient: Db }) {... |
a4f7ce11490577048dce78387af91c8b5fa4d688 | TypeScript | MikeHopcroft/PrixFixe | /src/core/catalog/schema.ts | 2.640625 | 3 | import AJV from 'ajv';
import Debug from 'debug';
import yaml from 'js-yaml';
import { YAMLValidationError } from '../utilities';
import { Catalog } from './catalog';
import {
GenericEntity,
genericEntityFactory,
GenericTypedEntity,
SpecificEntity,
specificEntityFactory,
SpecificTypedEntity,
} from './int... |
614caa47b9bae569c2677e34745d10b0634e25f4 | TypeScript | jtenner/assemblyscript | /tests/compiler/std/staticarray.ts | 2.96875 | 3 | import { OBJECT, TOTAL_OVERHEAD } from "rt/common";
// from contextual type
const arr1: StaticArray<i32> = [1,2,3];
assert(arr1[1] == 2);
assert(arr1.length == 3);
arr1[1] = 4;
assert(arr1[1] == 4);
assert(changetype<OBJECT>(changetype<usize>(arr1) - TOTAL_OVERHEAD).rtId == idof<StaticArray<i32>>());
// from assertio... |
bd8c1c20b2504cc35127124a857cbb1fa13b38c0 | TypeScript | kkenward/mars-rover | /src/app/mission-input.component.ts | 2.65625 | 3 | import { Component, Output, EventEmitter } from '@angular/core';
@Component({
selector: 'app-mission-input',
templateUrl: './mission-input.component.html',
styleUrls: ['./mission-input.component.css']
})
export class MissionInputComponent {
@Output() nextMission: EventEmitter<object> = new EventEmitter<object>(... |
d2a59da0a768880349c706a5a2ad11788d8b6c53 | TypeScript | apple-yagi/nest-general-purpose-app | /src/items/items.resolver.ts | 2.515625 | 3 | import { UseGuards } from '@nestjs/common';
import { Args, Mutation, Query, Resolver } from '@nestjs/graphql';
import { CurrentUser } from 'src/guards/current-user';
import { GqlAuthGuard } from 'src/guards/gql-auth.guard';
import { Item } from './item';
import { ItemsService } from './items.service';
@Resolver('Items... |
cd2100e984eff65d73a758a75d1c895343e19629 | TypeScript | honkit/honkit | /packages/@honkit/html/src/dom.ts | 2.625 | 3 | import _ from "lodash";
import * as cheerio from "cheerio";
/**
Parse an HTML string and return its content
@param html
@return {cheerio.Root}
*/
export function parse(html: string) {
const $ = cheerio.load(html, { _useHtmlParser2: true });
const $el = $("html, body").first();
return $el.leng... |
6f78587c2cf24f7578ec83febb30d71c2eaef18f | TypeScript | Aliuihb/guilded.js | /packages/common/__tests__/MessageUtil.test.ts | 2.609375 | 3 | import { generateMessage, parseMessage, parseToMessage } from '..';
import { Embed } from '../../embeds';
import data from './MessageUtil.test.data.json';
const testingMessage1 = 'TESTING MESSAGE' as const;
const testingMessage2 = 'TESTING MESSAGE 2' as const;
const testingMessage3 = 'TESTING MESSAGE 3' as const;
// ... |
f787be50049d72b64357409834cde584104c10f6 | TypeScript | Siedlerchr/types-ol-ext | /@types/ol-ext/source/GeoImage.d.ts | 3.09375 | 3 | import type { Coordinate } from 'ol/coordinate'
import type { Extent } from 'ol/extent'
import type { LineString } from 'ol/geom'
import type { Size } from 'ol/size'
import { ImageCanvas } from 'ol/source'
export interface Options {
url?: string;
image?: any; // TODO: image type
imageCenter?: Coordinate;
image... |
9d6fa27fbb1f774799af737cda1f9496ce6a6229 | TypeScript | CursedMun/InsomniaBot | /commands/Основное/расстаться.ts | 2.578125 | 3 | import { Command, Discord, Document } from "discore.js";
import Constants from "../../util/Constants";
export default class extends Command {
get customOptions() {
return {
group: "Основное",
help: "Разорвать текущую пару",
syntax: `${this.client.prefix}расстаться`,
example: `${this.clien... |
053fbe6299b1c63028f04e4e8d3751ea2c744f9b | TypeScript | gggfox/amadis | /server/src/utils/createPromotorUpdootLoader.ts | 2.734375 | 3 | import DataLoader from "dataloader";
import { PromotorUpdoot } from "../entities/PromotorUpdoot";
export const createPromotorUpdootLoader = () =>
new DataLoader<{promotorId: number, userId: number}, PromotorUpdoot | null>(
async (keys) => {
const updoots = await PromotorUpdoot.findByIds(keys a... |
ef4fd01e58212254c22fe85fd4ed0e91b2cf5123 | TypeScript | dsignn/library | /src/sport/player/PlayerInteface.d.ts | 2.875 | 3 | /**
* @interface PlayerInteface
*/
export interface PlayerInteface {
/**
* @return {string}
*/
getFirstName(): string;
/**
* @return {string}
*/
getLastName(): string;
/**
* @return {Date}
*/
getBirthday(): Date;
/**
* @return {string}
*/
getRole(... |
3e794f1349e2b610f064aa4abfdb16f7332117ad | TypeScript | mitom18/example-server-nodejs | /src/model/user.ts | 2.890625 | 3 | import { Entity, PrimaryGeneratedColumn, Column } from "typeorm";
export enum UserRole {
ADMINISTRATOR = "administrator",
USER = "user",
}
@Entity({ name: "users" })
export class User {
@PrimaryGeneratedColumn()
id?: number;
@Column()
email!: string;
@Column()
password!: string;
... |
0534b94866db8346f8f7e99b3baebd680056900a | TypeScript | PavelMCaro/mongoose | /app/client/src/view/form/state/form/reducer.ts | 2.984375 | 3 | import * as actionTypes from './actionTypes';
interface State {
data: any;
isFetching: boolean;
error: boolean;
errorMessage: string;
}
const initialState: State = {
data: [],
isFetching: false,
error: false,
errorMessage: ''
};
export const form = (state: State = initialState, action... |
ebd62077a1a7927ebdbf99b05436f49e2271e20c | TypeScript | zcyemi/Iris | /src/core/RenderTexture.ts | 2.703125 | 3 | import { GLContext } from "../gl/GLContext";
import { ITexture, TextureCreationDesc, TextureType, TextureDescUtility } from "./Texture";
import { Texture2D } from "./Texture2D";
import { FrameBuffer, FrameBufferTexDesc } from "../gl/FrameBuffer";
export class RenderTexture implements ITexture{
private m_valid:... |
2014544b501a6eee896786aab235b9a915432bf3 | TypeScript | ilanddev/javascript-sdk | /src/sdk/model/o365/__json__/o365-teams-restore-options-request-json.ts | 2.625 | 3 | /**
* O365 Teams restore options request JSON properties
*/
export interface O365TeamsRestoreOptionsRequestJson {
user?: string;
password?: string;
device_code?: string;
restore_settings?: boolean;
restore_missing_items?: boolean;
restore_members?: boolean;
restore_changed_items?: boolean;
file_versio... |
bb5e68a570b85ba3417978d20c441d33ca003f1b | TypeScript | ebi-uniprot/uniprot-website | /src/query-builder/utils/fieldInitializer.ts | 3.078125 | 3 | import { QueryBit, SearchTermType } from '../types/searchTypes';
const integerRange = /^\[(\*|-?\d+) TO (\*|-?\d+)\]$/;
const dateRange = /^\[(\*|\d{4}-\d{2}-\d{2}) TO (\*|\d{4}-\d{2}-\d{2})\]$/;
const initializer = (
field: SearchTermType,
initialValue?: QueryBit,
isAutoCompleteQueryId = false
): string | [fro... |
a2b066ee0bec2cdc8550c633f7f2acbd075d79c1 | TypeScript | danmin20/cashbook-14 | /client/src/Components/atom/PieGraph/index.ts | 2.71875 | 3 | import PieGraphConfig from './configType';
import pieGraphDefaultConfig from './defaultConfig';
import './style';
interface PieGraphData {
category: string;
amount: number;
color: string;
}
export default class PieGraph {
data: PieGraphData[];
$wrapper: HTMLElement;
$dom: HTMLElement;
$canvas: HTMLCanva... |
8297618225ff7acc4dcd8afec6d4a5c4290a1b71 | TypeScript | reecerussell/distro-cms | /cms/src/app/store/roles/role.reducer.ts | 2.828125 | 3 | import { initializeRoleState, RoleListState, RoleState } from "./role.state";
import * as RoleActions from "./role.action";
import Role from "src/app/models/role.model";
export type Action = RoleActions.All;
const defaultRoleStates: RoleState[] = [
{
...(initializeRoleState() as RoleState),
},
];
con... |
7e4d47fb3273c5b70f9d3cb942ba55bd748719b5 | TypeScript | lotooo/terraforming-mars | /src/cards/IceAsteroid.ts | 2.921875 | 3 |
import { IProjectCard } from "./IProjectCard";
import { Tags } from "./Tags";
import { CardType } from "./CardType";
import { Player } from "../Player";
import { Game } from "../Game";
import { SelectSpace } from "../inputs/SelectSpace";
import { ISpace } from "../ISpace";
export class IceAsteroid implements IProject... |