text
stringlengths
10
953k
import { Counter, SimpleResponse } from "../shared/types"; const API_BASE_URL = process.env.REACT_APP_API_URL; function post():Promise<Counter> { let counterToCreate: Counter = { id: 0, count: 0 } const requestOptions = createRequestOptionsWithBody("POST", counterToCreate); return fetch(API_BASE_URL...
import { Injectable, Inject } from '@angular/core'; import { HttpClient, HttpHeaders, HttpResponse } from '@angular/common/http'; import { Observable } from 'rxjs'; export namespace MyNS { export interface ApiResponse { code?: number; type?: string; message?: string; } /** A representation of a cat */ expor...
"use strict"; interface CompatElectronBridge extends ElectronBridge { readonly idle_on_system: boolean; readonly last_active_on_system: number; send_notification_reply_message_supported: boolean; } (() => { const zulipWindow = window as typeof window & { electron_bridge: CompatElectronBridge; raw_elec...
import * as t from "../../dist/types"; export const ITest = t.iface([], { "string": t.opt(t.union("string", "null")), "uint32": t.opt(t.union("number", "null")), "inner": t.opt(t.union("IInner", "null")), "float": t.opt(t.union("number", "null")), }); export const IInner = t.iface([], { "int32": t.opt(t.uni...
import { IUser } from './../interfaces/user.interface'; import { Strategy } from 'passport-local'; import { PassportStrategy } from '@nestjs/passport'; import { Injectable, UnauthorizedException } from '@nestjs/common'; import { AuthService } from './auth.service'; @Injectable() export class LocalStrategy extends Pass...
import { Action } from 'redux'; import { LOAD_ARCHIVE } from '../actions/archive'; export default function counter(state = {}, action: Action<string>) { switch (action.type) { case LOAD_ARCHIVE: return {}; default: return state; } }
/** * * @param str * @return str * @example * removeVietnameseTones('Vũ Thanh Bảy') // return Vu Thanh Bay */ export const removeVietnameseTones = (str: string) => { str = str.replace(/à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ/g, 'a') str = str.replace(/è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ/g, 'e') str = str.replace(/ì|í|ị|ỉ|ĩ/g, ...
import { ApiProperty } from '@nestjs/swagger'; import { IsNotEmpty, IsString } from 'class-validator'; export class FirebaseAuthDto { @ApiProperty({ required: true, type: String, description: 'Email', }) @IsString() @IsNotEmpty() public email: string; @ApiProperty({ required: true, typ...
import React, { useCallback } from "react"; import useConfirm from "./hooks/use-confirm"; import useBlocker from "./hooks/use-blocker"; type ReactRouterPromptProps = { when: boolean; children: (data: { isActive: boolean; onCancel: (value: unknown) => void; onConfirm: (value: unknown) => void; }) => ...
import { Kind } from 'graphql/language'; import { GraphQLIBAN } from '../src/scalars/IBAN'; // List was taken from https://www.iban.com/structure const IBANs = [ 'AL35202111090000000001234567', 'AD1400080001001234567890', 'AT483200000012345864', 'AZ96AZEJ00000000001234567890', 'BH02CITI00001077181611', 'BY...
/* tslint:disable */ import { ConcreteFragment } from "relay-runtime"; export type About_artist = { readonly has_metadata: boolean | null; readonly is_display_auction_link: boolean | null; readonly id: string; readonly related_artists: ReadonlyArray<({ }) | null> | null; readonly articles: ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. 'use strict'; import { inject, injectable } from 'inversify'; import { Disposable, Uri } from 'vscode'; import { DeprecatePythonPath } from '../../../common/experimentGroups'; import { IExperimentsManager, IPathUtils, Reso...
import { IDatabaseEntry } from '../Database'; export interface IProjectSchema { name: string; path: string; sets: string[]; } export interface IProjectBackupSchema { name: string; description: string; ref: string; // reference to the project ID version: number; path: string; } export interface IProjectMetaSc...
export const ELASTIC_SEARCH_OPTIONS = Symbol('ELASTIC_SEARCH_OPTIONS'); export const ELASTIC_SEARCH_CLIENT = Symbol('ELASTIC_SEARCH_CLIENT'); export const BATCH_SIZE = 500; export const VARIANT_INDEX_NAME = 'variants'; export const VARIANT_INDEX_TYPE = 'variant-index-item'; export const PRODUCT_INDEX_NAME = 'products';...
import { AppPage } from './app.po'; import { browser, logging } from 'protractor'; describe('workspace-project App', () => { let page: AppPage; beforeEach(() => { page = new AppPage(); }); it('should display welcome message', () => { page.navigateTo(); expect(page.getTitleText()).toEqual('cliente...
/** Copyright 2021 Forestry.io Holdings, 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/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing,...
import { registerMockEndpoint } from '@placeos/ts-client'; import { MOCK_EVENTS } from './events.data'; import { MOCK_SPACES } from './spaces.data'; import * as dayjs from 'dayjs'; registerMockEndpoint({ path: '/api/staff/v1/calendars', metadata: {}, method: 'GET', callback: (request) => [] }); regis...
/* * Copyright Strimzi authors. * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). */ import { existsSync, watch } from 'fs'; import { resolve } from 'path'; import merge from 'lodash.merge'; import { server } from 'ui-config'; const { defaultServerConfig } = serve...
import React from 'react'; import Layout from '@theme/Layout'; import Link from '@docusaurus/Link'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import classes from './index.module.scss'; import HomepageHeader from '../components/HomepageHeader'; import HomepageFeatures from '../components/Homep...
import { GET_DRILL_DOWN_DATA, UPDATE_CHART_STACK, POP_FROM_CHART_STACK, FETCH_GADGET_DATA, CLEAR_GADGET_EVENTS, GET_GADGET_DATA_EVENT, UPDATE_GADGET, GET_GADGET_DATA_EVENT_FAIL } from '../utils/constants/action.types'; import {FETCH_RELEASE_SUMMARIES_SUCCESS, FETCH_GADGET_DATA_SUCCESS, GET_GADGET_DATA_SUCCESS} from...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ export * from './alias'; export * from './buffer'; export * from './empty'; export * from './interface'; export * fr...
import { PipeTransform, BadRequestException } from '@nestjs/common' import { TaskStatus } from '../task-status.enum' export class TaskStatusValidationPipe implements PipeTransform { readonly allowedStatuses = [ TaskStatus.OPEN, TaskStatus.IN_PROGRESS, TaskStatus.DONE ] transform(value: any) { va...
export { default as pizzaReducer } from './pizzaReducer' export { default as cartReducer } from './cartReducer' export { default as userReducer } from './userReducer'
/** * @license * Copyright (c) 2021 Handsoncode. All rights reserved. */ import { AbsoluteCellRange } from '../AbsoluteCellRange'; import { SimpleCellAddress } from '../Cell'; import { RawCellContent } from '../CellContentParser'; import { CellDependency } from '../CellDependency'; import { Config } from '../Config'...
import {Logger} from "../domain/logger"; export interface SubscriberToken{ topic:string, index:number } export class Subscriber { private logger = new Logger('Subscriber', 'brown'); private topics = {}; private hasOwnProperty = this.topics.hasOwnProperty; on(topic:string, listener:any){ this.logger.l...
import {Injectable, Optional, SkipSelf} from '@angular/core'; /** * The OverlayContainer is the container in which all overlays will load. * It should be provided in the root component to ensure it is properly shared. */ @Injectable() export class OverlayContainer { protected _containerElement: HTMLElement; p...
import React from 'react'; import pickBy from 'lodash/pickBy'; import mapValues from 'lodash/mapValues'; import mapKeys from 'lodash/mapKeys'; export type ForProps<DataProps, ExtraProps = {}> = { 'for-key': ((item: DataProps, index: number) => string | number) | undefined; for: DataProps[]; } & ExtraProps & Reco...
import type {NextPage} from 'next'; import Head from 'next/head'; import React from 'react'; import styles from '../styles/Home.module.css'; import MainContent from "../components/MainContent"; import Alerts from "../components/Alerts"; import TitleBar from "../components/util/TitleBar"; const Home: NextPage = () => {...
import { InputType, ObjectType, PartialType, PickType } from "@nestjs/graphql"; import { User } from "../entities/user.entity"; import { CoreOutput } from "./output.dto"; @InputType() export class CreateAccountInput extends PickType(PartialType(User), [ "email", "password", "role" ]) {} @ObjectType() export cla...
// Vendor import chalk from 'chalk' // Types import {Document, Project, Revision} from '../../types/project' export default class ProjectStatsFormatter { private readonly project: Project constructor(project: Project) { this.project = project } public log() { const translationsCount = this.project.r...
import { Entity, PrimaryGeneratedColumn, Column, Unique, TreeChildren, TreeParent, Tree } from "typeorm"; import { IsOptional, IsNotEmpty, IsEmail } from "class-validator"; import * as bcrypt from 'bcrypt'; import { USER_ROLE } from "src/commom/constants"; @Entity() @Unique(['identity', 'email']) @Tree("materialized-p...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ i...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import {Routes, RouterModule} from '@angular/router'; const routes: Routes = [ { path: ':id', loadChildren: './user-profile/user-profile.module#UserProfilePageModule' } ]; @NgModule({ declarations: [], imports: [ Co...
#!/usr/bin/env ts-node import test from 'tstest' import sinon from 'sinon' import { // UrlLink, Wechaty, // MiniProgram, } from 'wechaty' import { EventScanPayload, ScanStatus, EventLoginPayload, EventMessagePayload, MessagePayload, MessageType, FileBox, } ...
import { Link } from 'gatsby'; import styled from '@emotion/styled'; /* * Due to global scoping with html.casper, global style have high specificity * https://styled-components.com/docs/faqs#how-can-i-override-styles-with-higher-specificity */ export const TocAside = styled.aside` && { order: 1; font-fami...
import * as React from "react"; import { EditorState, Plugin } from "prosemirror-state"; import { MarkdownParser, MarkdownSerializer } from "prosemirror-markdown"; import { EditorView } from "prosemirror-view"; import { Schema, NodeSpec, MarkSpec } from "prosemirror-model"; import { InputRule } from "prosemirror-inputr...
// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. import { eachWeekendOfYear } from 'date-fns-jalali/fp' export default eachWeekendOfYear
export default interface ErrorResponse { message: string; }
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import React, { useCallback, useState } from 'react'; import { i18n } from '@k...
import React from "react"; import clsx from "clsx"; const MoreIcon = (props: React.SVGProps<SVGSVGElement>) => { const { className, ...otherProps } = props; return ( <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" className={clsx(className)} ...
import * as vscode from 'vscode'; import * as Types from './types'; import { ApiClient } from './apiClient'; import { QuickPick } from './QuickPick'; export class StatusBar { private apiClient: ApiClient; private quickPick: QuickPick; private statusBarItem: vscode.StatusBarItem; private statusBarInterval: Node...
import { GetLogEventsInput } from "../shapes/GetLogEventsInput"; import { GetLogEventsOutput } from "../shapes/GetLogEventsOutput"; import { InvalidParameterException } from "../shapes/InvalidParameterException"; import { ResourceNotFoundException } from "../shapes/ResourceNotFoundException"; import { ServiceUnavailabl...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
/** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1.19.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do n...
export class Quote { showDescription: boolean; constructor(public id: number, public name: string, public author: string, public submitter: string, public completeDate: Date) { this.showDescription = false; } }
import {test} from "rome"; import {SourceLocation} from "@internal/parser-core"; import {ob1Coerce0, ob1Coerce1} from "@internal/ob1"; import {inheritLoc} from "@internal/js-ast-utils/inheritLoc"; import {jsCommentLine, jsIdentifier} from "@internal/ast"; test( "returns the node's source location with it's name", as...
import mapValues from 'lodash/mapValues'; import { isModulePreloaded, SnackFiles, SnackMissingDependencies, getDeprecatedModule, } from 'snack-sdk'; import { SDKVersion, SnackCodeFile, SnackDependencies, Annotation, AnnotationAction, } from '../types'; import type { FileDependencies } from './findDep...
import Link from "next/link"; import React from "react"; import { Row, Col } from "react-bootstrap"; import { DashBoardListConsumer } from "../../context/ListProvider"; import FlipMove from "../utils/FlipMove"; import { Props } from "./DashboardBlocksBlock"; import DashboardBlocksBlock from "./DashboardBlocksBlock";...
import { useBurnerSigner } from 'eth-hooks'; import { useEthersContext } from 'eth-hooks/context'; import { useEffect } from 'react'; import { NETWORKS } from 'scaffold-common/src/constants'; import { IScaffoldAppProviders } from '~~/components/main/hooks/useScaffoldAppProviders'; export const useBurnerFallback = (ap...
import { Controller } from '@nestjs/common'; import { Crud } from '@nestjsx/crud' import { Movie } from './movie.entity'; import { MovieService } from './movie.service'; @Crud({ model: { type: Movie } }) @Controller('movie') export class MovieController { constructor(public service: MovieService)...
import { Component, OnInit } from '@angular/core'; import { Validators, FormBuilder } from '@angular/forms'; import { SampleService } from 'app/Services/sample.service'; import { Router } from '@angular/router'; @Component({ selector: 'app-icons', templateUrl: './icons.component.html', styleUrls: ['./icons.compo...
import { describe, it, expect } from '@jest/globals'; import { sayHello } from '.'; describe('sayHello', () => { it('should return "Hello World!', () => { expect(sayHello('World')) .toBe('Hello World!'); }); });
import { ParserSchemeFunction, valuesArgs, schemes, scheme, ParserLettuceInterface } from "../functions/validator"; export declare class ParserLettuce implements ParserLettuceInterface { /** * instance ParserLettuce */ constructor(valueOf?: boolean); /** * Activating the schema validation fun...
import { EventIdentifier, ObservedValue, EventIdentifierStrict } from "../package"; import { AssertTrue, AreEqual, Method } from "./utils"; class SomeType { private _ = "" } const someSymbol = Symbol("foo"); class MixtypedNodeEmitter { addListener( eventName: string | symbol, listener: (...args: any[]) => void ...
import type { IOptionLoader } from "../../../Interfaces/IOptionLoader"; import type { IZIndex } from "../../../Interfaces/Particles/ZIndex/IZIndex"; import type { RecursivePartial } from "../../../../Types/RecursivePartial"; import { ValueWithRandom } from "../../ValueWithRandom"; /** * @category Options */ export c...
/* GENERATED FILE */ import React, { forwardRef } from "react"; import { IconWeight, IconProps, PaintFunction, renderPathForWeight, } from "../lib"; import IconBase, { RenderFunction } from "../lib/IconBase"; const pathsByWeight = new Map<IconWeight, PaintFunction>(); pathsByWeight.set("bold", (color: string...
/** * Copyright 2017-2020 the original author or authors from the JHipster Online project. * * This file is part of the JHipster Online project, see https://github.com/jhipster/jhipster-online * for more information. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file ...
import Image from "next/image" export function YouTubeEmbed({ id }: { id: string }) { return ( <div className="aspect-video"> <iframe className="rounded-md" width="100%" height="100%" src={`https://www.youtube.com/embed/${id}`} frameBorder="0" allow="encrypted-media;" ></iframe> </di...
import axios, { AxiosError } from 'axios'; import { useState, useEffect } from 'react'; import {Record} from '../interfaces/RecordEntities'; export const useFetch = <T extends Record>(path: string, options?: {}) => { const [records, setRecords] = useState<T[]>([]); const [version, setVersion] =useState(+new Da...
namespace Lesson03 { export class ApplicationController { public title: string = 'Lesson 03'; } }
/* * Copyright 2019 IBM Corporation * * 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/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
import React from 'react'; import { Box, makeStyles } from '@material-ui/core'; import InfoIcon from '@material-ui/icons/Info'; import ShareIcon from '@material-ui/icons/Share'; import DeleteIcon from '@material-ui/icons/Delete'; import ArchiveIcon from '@material-ui/icons/Archive'; import { Note } from '../reducers/no...
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { E2EImportsModule } from 'e2e-imports.module'; import { AssignmentListComponent } from './assignment-list.component'; describe(`AssignmentListComponent`, () => { let component: AssignmentListComponent; let fixture: Compon...
import { DestinyVersion } from '@destinyitemmanager/dim-api-types'; import { DestinyAmmunitionType, DestinyBreakerTypeDefinition, DestinyClass, DestinyCollectibleState, DestinyDamageTypeDefinition, DestinyDisplayPropertiesDefinition, DestinyEnergyTypeDefinition, DestinyInventoryItemDefinition, Destiny...
import Component from '../../Component'; import { walk } from 'estree-walker'; import is_reference from 'is-reference'; import flatten_reference from '../../utils/flatten_reference'; import { create_scopes, Scope, extract_names } from '../../utils/scope'; import { sanitize } from '../../../utils/names'; import Wrapper ...
import { Dispatch, Middleware, MiddlewareAPI } from "redux"; import constants from "../config/constants"; import { Actions } from "../state"; import { TypeKeys } from "../state/api"; import { error, Routes, start, success } from "../state/fetch"; function buildPath(route: Routes) { return `${constants.BASE_URL}/${r...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. export const SDK_VERSION: string = "1.3.2";
import { OnInit } from '@angular/core'; import { AlertService } from '../service/alert.service'; import { Alert } from '../model/alert.model'; import { Observable } from 'rxjs'; import { AlertConfig } from '../model/alert-config.model'; export declare class AlertComponent implements OnInit { private config; pri...
export * from './maja-dropdown' export * from './maja-form' export * from './maja-horizontal-line' export * from './maja-horizontal-rule' export * from './maja-input' export * from './maja-input-with-new' export * from './maja-label' export * from './maja-list' export * from './maja-select'
export * from './stocks-table.component';
/* tslint:disable:no-unused-variable */ import * as React from 'react'; /* tslint:enable:no-unused-variable */ import * as ReactDOM from 'react-dom'; import * as ReactTestUtils from 'react-addons-test-utils'; let { expect } = chai; import { Breadcrumb } from './Breadcrumb'; import { IBreadcrumbItem } from './Breadcr...
import { Request, Response } from 'express'; // import { parseISO } from 'date-fns'; import { container } from 'tsyringe'; import CreateAppointmentService from '@modules/appointments/services/CreateAppointmentService'; export default class AppointmentsController { public async create(request: Request, response: Re...
import { readFileSync } from 'fs'; import {parse } from '@iarna/toml' export abstract class Provider { protected document: any = {}; abstract load(): Promise<void>; public fetch(key: string): any { const fields = key.split("."); return fields.reduce((previous, current) => previous ? previ...
/* eslint-disable unicorn/consistent-function-scoping,unicorn/no-null */ import { describe, it } from 'mocha'; import { given } from 'mocha-testdata'; import { actorCalled } from '../../src'; import { Actor, Question } from '../../src/screenplay'; import { expect } from '../expect'; /** @test {Question} */ describe('...
import {ArticleInterface} from "src/app/shared/types/article.interface"; export interface ArticleResponseInterface { article: ArticleInterface }
import { AppPage } from './app.po'; describe('workspace-project App', () => { let page: AppPage; beforeEach(() => { page = new AppPage(); }); it('should display welcome message', () => { page.navigateTo(); expect(page.getParagraphText()).toEqual('Welcome to chess-ts-app!'); }); });
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {APP_BASE_HREF, HashLocationStrategy, Location, LocationStrategy, PathLocationStrategy, PlatformLocation} fro...
import * as React from 'react'; import { Empty, } from 'antd'; import { PasswordWrapper, PasswordMain, } from './style'; export interface ISettingsViewPasswordProps { }; export interface ISettingsViewPasswordState { } const SettingsViewPassword = React.memo((props: ISettingsViewPasswordProps) => { return (...
/* eslint-disable react/jsx-props-no-spreading */ import React, {forwardRef, ReactNode, useMemo} from 'react'; import clsx from 'clsx'; import {bemify} from '@thenewboston/utils'; import AccountGroupIcon from 'mdi-react/AccountGroupIcon'; import AlertIcon from 'mdi-react/AlertIcon'; import AlertCircleIcon from 'mdi-r...
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers'; import { expect } from 'chai'; import { ethers } from 'hardhat'; import '@nomiclabs/hardhat-waffle'; import { Contract, ContractFactory } from '@ethersproject/contracts'; describe('TFT', function () { let MintableERC20Factory: ContractFactory, ...
import { State } from 'react-native-gesture-handler'; import Animated, { Value, event } from 'react-native-reanimated'; import useWillMount from 'react-will-mount-hook'; export type GestureBaseContext = { gestureX: Animated.Value<number>; gestureY: Animated.Value<number>; velocityX: Animated.Value<number>; vel...
import { createSelector } from '@reduxjs/toolkit' import { FetchBaseQueryError } from '@reduxjs/toolkit/query/react' import { QueryReturnValue } from '@reduxjs/toolkit/dist/query/baseQueryTypes' import { rootApi } from './api' import { ChainData, Spell } from '@latitudegames/thoth-core/types' // function camelize(str)...
import { Module } from '@nestjs/common'; import { GraphQLModule } from '@nestjs/graphql'; import { join } from 'path'; import { TypeOrmModule } from '@nestjs/typeorm'; import { ThrottlerModule } from '@nestjs/throttler'; import { AppController } from './app.controller'; import { AppService } from './app.service'; // i...
import { Document, Text } from '@contentful/rich-text-types' export const getFirstParagraph = (json: Document): string => { const [firstParagraph] = json.content.filter( (node) => node.nodeType === 'paragraph' ) const block = firstParagraph?.content[0] as Text return block?.value || '' }
import * as React from 'react'; import VisibilitySensor from 'react-visibility-sensor'; import {Card} from '@twilio-paste/card'; import {useSpring, animated} from '@twilio-paste/animation-library'; const AnimatedCard = animated(Card); interface GetStartedCardProps { animationDelay?: number; } export const GetStarted...
import { Component } from '@angular/core'; @Component({ selector: 'single-selection-demo', template: ` <div> <h3> Single Row Selection <small> <a href="https://github.com/swimlane/ngx-datatable/blob/master/demo/selection/selection-single.component.ts" target="_blank"> ...
import { isValid } from '.'; export type Direction = 'left' | 'right'; const pad = ( input: string, desiredLength: number, padChar: string, direction: Direction = 'left' ) => { if (typeof input != 'string') return input; if (typeof desiredLength === 'undefined' || desiredLength === null) { return inpu...
import * as fs from 'fs'; import * as path from 'path'; export const configFile = 'stricter.config.js'; export default (currentPath: string, configPath?: string): string => { if (configPath) { if (fs.existsSync(configPath)) { return configPath; } const relativePath = path.join...
import styled from 'styled-components'; import assets from '../../assets'; const GraphAVLogo = styled.img.attrs({ src: assets.images.graphAVLogo, })` height: 38px; width: 150px; margin: 5px 10px; user-select: none; `; export default GraphAVLogo;
/** * This file was automatically generated with @twilio-labs/svg-to-react */ import * as React from 'react'; import {UID} from 'react-uid'; import {IconWrapper, IconWrapperProps} from './helpers/IconWrapper'; export interface BillingIconProps extends IconWrapperProps { title?: string; decorative?: boolean; } c...
import { Validator } from './validator.interface'; import { ParticipanteModel } from '../models/participante.model'; import { ValidationError } from '../errors/validation.error'; export class DependenteValidator implements Validator{ validate(data:{dependente:ParticipanteModel, participante:ParticipanteModel}){ ...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /// <amd-module name="tsickle/src/module_type_translator" /> /** * @fileoverview module_type_translator builds on to...
/// <reference path="./lib/d3.d.ts"/> import * as dynamicgraph from 'vistorian-core/src/dynamicgraph'; import * as utils from 'vistorian-core/src/utils'; import * as main from 'vistorian-core/src/main'; import * as messenger from 'vistorian-core/src/messenger'; import * as ui from 'vistorian-core/src/ui'; import * as...
// Advent of Code - Day 12 - Part One export function part1(input: string): number { const findAllPathsFrom = (start: string, pathWays: Map<string, Array<string>>, visited: Map<string, number>, pathHere: Array<string>) => { const localVisited = new Map(visited) if (start.toLowerCase() === ...
import React from "react"; import Container from "@mui/material/Container"; import RequestAuthorship from "components/RequestAuthorship"; const RegisterAuthorPage = () => { return ( <Container maxWidth="lg"> <RequestAuthorship /> </Container> ); }; export default RegisterAuthorPage;
import * as M from "materialize-css"; import * as jQuery from "jquery"; import cash from "cash-dom"; // Test Component Initialization // $ExpectType Autocomplete M.Autocomplete.init(document.querySelector('.whatever')!); // $ExpectType Autocomplete[] M.Autocomplete.init(document.querySelectorAll('.whatever')); // $Ex...
import { Gantt } from '../base/gantt'; import { Tooltip as TooltipComponent, TooltipEventArgs } from '@syncfusion/ej2-popups'; import { parentsUntil } from '../base/utils'; import * as cls from '../base/css-constants'; import { extend, isNullOrUndefined, getValue, EventHandler, closest } from '@syncfusion/ej2-base'; im...
import {Pipe,PipeTransform} from '@angular/core'; @Pipe({name:'toFixed'}) export class ToFixedPipe implements PipeTransform { transform(value:number,num:number):any{ if(!num){ return value; }else{ return +value.toFixed(num); } } }
export interface Mentee { id: number; name: string; secondName: string; avatar?: string; } export interface MenteeProfile{ id?: number; avatar?: string; firstName: string; lastName: string; email: string; socialMap: { PhoneNumFirst: string, Telegram: string, ...
declare module Slack { /** * Interface describes object for stored user or bot */ export interface Stored { id: string; name: string; avatar: string; } export interface Profile { title: string; phone: string; skype: string; real_name: s...