text
stringlengths
10
953k
import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import { render } from '@ember/test-helpers'; import hbs from 'htmlbars-inline-precompile'; import { modalClass } from '@datahub/shared/components/tab-content-modal'; module('Integration | Component | top-consumers/insight/top-cons...
for (var a: number = 1, b: string = "" in X) { }
import * as webpack from 'webpack'; import { Configuration, ProgressPlugin, Stats } from 'webpack'; import { join, resolve } from 'path'; import { LicenseWebpackPlugin } from 'license-webpack-plugin'; import * as CopyWebpackPlugin from 'copy-webpack-plugin'; import * as TerserWebpackPlugin from 'terser-webpack-plugin';...
// Copyright 2018-2020 @paritytech/nomidot authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { Context, Selectors } from '../types'; const Query = { blockNumbers( _parent: any, { where, orderBy, skip...
import BigNumber from 'bignumber.js'; import sinon from 'sinon'; import { assertCaCheckpointValid, assertCaTargetsValid, assertCaTaxWithholdingsValid, assertDistributionDatesValid, assertInstructionValid, assertPortfolioExists, assertSecondaryKeys, } from '~/api/procedures/utils'; import { CheckpointSche...
import { Document } from 'mongoose'; export interface RestaurantGetCardInterface extends Document { restId: string; }
import React from "react" import { Outlet, Navigate } from "react-router" export const ProtectedRoutes = ({ loggedIn }: {loggedIn: boolean}) => { return loggedIn ? <Outlet /> : <Navigate to="/" />; } export const AuthRoutes = ({ loggedIn }: {loggedIn: boolean}) => { return !loggedIn ? <Outlet /> : <Navigate to="/...
import * as _ from 'lodash'; import { Accessibility } from '@fluentui/accessibility'; interface FilteredSpecification { behaviorName: string; testMethod: (arg: TestMethod) => void; params: RegExpExecArray; } export interface TestMethod { behavior: Accessibility; props: string[]; } export interface TestDefi...
import { addParameters } from "@storybook/react"; import * as themes from "../src/themes"; import withPatches from "./utils/patches-decorator"; import { sortStories } from "./utils/story-helpers"; // Add group and story names to the sort order to explicitly order them. // Items that are not included in the list are sh...
import { TweenLite } from "gsap"; import { Container } from "pixi.js"; import { AtlasKeys } from "../utils/AtlasKeys"; import { Colors } from "../utils/Colors"; import { MagicValues } from "../utils/MagicValues"; import { PixiFactory } from "../utils/PixiFactory"; import { CustomButton } from "./components/CustomButton...
import { Component } from '@angular/core'; import { FormGroup, FormControl } from '@angular/forms'; import { HttpClient } from '@angular/common/http'; import { environment } from '../../../../../environments/environment'; @Component({ selector: 'app-contact', templateUrl: './contact.component.html', styleUrls: [...
import '../../src/ext/array/alias-linq'; describe('Array.select', () => { it.each([ { case: 'Array.length > 0', items: [1, 2, 3], expected: [4, 5, 6] }, { case: 'Array.length = 0', items: [], expected: [] }, ])('$case', ({ items, expected }) => { // exercise const actual = items.select((item) => it...
import { Component, OnInit, ViewChild, AfterViewInit } from '@angular/core'; import { SelectionModel } from '@angular/cdk/collections'; import { MatTableDataSource } from '@angular/material/table'; import { MatPaginator } from '@angular/material/paginator'; import { MatSort } from '@angular/material/sort'; import { Top...
import type {Fn} from './utils'; /** * Frame object from execution stack. */ export type StackFrame<F extends Fn = Fn, This = unknown> = Readonly<{ getThis(): This; getTypeName(): string; getFunctionName(): string; getMethodName(): string; getFileName(): string; getLineNumber(): number; getColumnNumber...
import * as webpack from 'webpack'; import * as HtmlWebpackPlugin from 'html-webpack-plugin'; import * as path from 'path'; const environment = process.env.NODE_ENV || 'development'; interface Config extends webpack.Configuration { module: { rules: NewUseRule[], }; } interface NewUseRule extends webpack.New...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="be_BY" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About SantaCoin</source> <translation type="unfinished"/> </message> <message> <location l...
import { createContext } from 'react' export type DropdownContextState = { /** * Control de Dropdown state as Opened (true) or Closed (false). */ isOpen: boolean /** * Reference to DropdownButton, used to calculate a position for the DropdownMenu. */ dropdownButtonRef: React.RefObject<HTMLButtonEle...
export class Array<T> { private __memory: usize; private __capacity: i32; // capped to [0, 0x7fffffff] private __length: i32; // capped to [0, __capacity] private __grow(newCapacity: i32): void { assert(newCapacity > this.__capacity); var newMemory = allocate_memory(<usize>newCapacity * sizeof<T>(...
/* * Copyright 2021 Chaos Mesh Authors. * * 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...
import BaseLight from './BaseLight'; import { SceneHandler, BeforeSceneHandler } from './BaseEntity'; import { Vector3, Vector4, Matrix4 } from '../../Math'; import { Scene } from '../Scene'; export default class PointLight extends BaseLight { position: { x: number; y: number; z: number; ...
import React from "react"; import { Tag, TagLabel } from "@chakra-ui/react"; export interface StatusProps { status: "normal" | "degraded" | "partial" | "down"; } /** * Add Custom Components */ export const Status = (props: StatusProps) => { const status = props.status ?? "normal"; const labels = { normal...
import { Component, OnInit } from '@angular/core'; import { TranslateService } from '@ngx-translate/core'; @Component({ selector: 'app-menulanguage', templateUrl: './menulanguage.component.html', styleUrls: ['./menulanguage.component.scss'] }) export class MenulanguageComponent implements OnInit { browserLan...
import { Log, Pipeline } from '@ephox/agar'; import { UnitTest } from '@ephox/bedrock-client'; import { TinyApis, TinyLoader, TinyUi } from '@ephox/mcagar'; import LinkPlugin from 'tinymce/plugins/link/Plugin'; import SilverTheme from 'tinymce/themes/silver/Theme'; import { TestLinkUi } from '../module/TestLinkUi'; U...
import { Branch } from "./branch"; import { Language } from "./language"; import { Project } from "./project"; import { QueuedProcess } from "./queued_process"; import { Comment } from "./comment"; import { Order } from "./order"; import { PaymentCard } from "./payment_card"; import { Key } from "./key"; import { Scree...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { PtestUAnswersComponent } from './ptest-u-answers.component'; describe('PtestUAnswersComponent', () => { let component: PtestUAnswersComponent; let fixture: ComponentFixture<PtestUAnswersComponent>; beforeEach(async () => { await Te...
import {Component} from '@angular/core'; @Component({ selector: 'child-component', template: `<h1>C H I L D</h1>` }) export class ChildComponent{}
import { isNaN } from './number'; export function isDate(date: Date): boolean { return ( Object.prototype.toString.call(date) === '[object Date]' && !isNaN(date.getTime()) ); }
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { DaffProgressIndicatorComponent } from './progress-indicator.component'; @NgModule({ declarations: [DaffProgressIndicatorComponent], imports: [ CommonModule, ], exports: [DaffProgressIndicatorComponent], }) e...
import React from 'react'; import createSvgIcon from './helpers/createSvgIcon'; export default createSvgIcon( <path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7zm-4 6h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z" />, 'ListOutlined', );
import styled from '@emotion/styled'; const Container = styled.div` margin: 0 auto; max-width: 1240px; padding: 0 2rem; @media (max-width: ${({ theme }) => theme.breakpoints.md}) { padding: 0 1rem; } `; export default Container;
import OperationCanceledError from "../../src/Cancellation/OperationCanceledError"; import CancellationToken from "../../src/Cancellation/CancellationToken"; describe("OperationCanceledError", () => { it("test", () => { const token = new CancellationToken(); const error = new OperationCanceledError...
const jsonkey = { LHC: { FIREBASEapiKey: "FIREBASEKEY", FIREBASEauthDomain: "FIREBASEKEY", FIREBASEdatabaseURL: "FIREBASEKEY", FIREBASEstorageBucket: "FIREBASEKEY", FIREBASEprojectId: "FIREBASEKEY", FIREBASEVersion: 1 } }; const build = 'LHC'; class BuildSetting...
import React, { ChangeEvent, ForwardRefExoticComponent, MouseEvent, PropsWithoutRef, RefAttributes } from 'react'; import { SimpleInterpolation } from 'styled-components'; import { IconType } from '@monorail/visualComponents/icon/IconType'; import { DisplayType } from '@monorail/visualComponents/inputs/inputTypes'; imp...
import { FakeOptions, fake } from './core/core'; import { data } from './fish.json'; /** * Generate a random fish. * * @category animals * * @example * * randFish() * * @example * * randFish({ length: 10 }) * */ export function randFish<Options extends FakeOptions = never>( options?: Options ) { retur...
import * as path from 'path'; import { resolveHomePath } from '../utils'; import { ScopeNotFound } from './exceptions'; import Scope from './scope'; export default function loadScope(currentPath?: string | null | undefined, useCache = true): Promise<Scope> { if (!currentPath) currentPath = process.cwd(); try { ...
/** @format */ import { FeroClient } from "./Client"; import { Message } from "discord.js"; interface RunOptions { message: Message; client: FeroClient; args: string[]; } type RunFunction = (options: RunOptions) => any; export type CommandType = { name: string; description?: string; aliases?: string[] |...
// Type definitions for react-native 0.63 // Project: https://github.com/facebook/react-native // Definitions by: Eloy Durán <https://github.com/alloy> // HuHuanming <https://github.com/huhuanming> // Kyle Roach <https://github.com/iRoachie> // Tim Wang <https://github.co...
import React from 'react'; import {Skeleton} from "@material-ui/lab"; export const LoadingPage: React.FC = () => ( <Skeleton variant="rect" width={"100%"} height={400}/> );
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { CreateRoomComponent } from './pages/create-room/create-room.component'; import { JoinRoomComponent } from './pages/join-room/join-room.component'; import { HomePageComponent } from './pages/home-page/home-page.com...
/** * Copyright (c) 2018-2019 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose <alexander.rose@weirdbyte.de> */ import { GLRenderingContext } from './compat'; export type WebGLState = { currentProgramId: number currentMaterialId: number currentRenderIte...
import * as bodyParser from "body-parser"; import * as express from "express"; import * as fs from "fs"; import * as t from "io-ts"; import { ResponsePermanentRedirect } from "italia-ts-commons/lib/responses"; import { EmailString, FiscalCode, NonEmptyString } from "italia-ts-commons/lib/strings"; import passport...
// @declaration: true // @lib: es6 // @filename: foo.ts interface Point { x: number; y: number; } export = Point; // @filename: foo2.ts namespace Bar { export interface I { a: string; b: number; } } export namespace Baz { export interface J { a: number; b: string; ...
import path from "path" import fs from "fs-extra" import { NodeBundleDevOptions, nodeBundleProd } from "@radtools/bundle/src/nodeBundle" import { createLogger } from "utilities/src/simpleLogger" const { log, error } = createLogger("worker-osu-event-tracker build", { useColors: true }) const start = async () => { l...
import { isPrefixed } from "../core/iri/utils"; import { TokenNode } from "./TokenNode"; /** * Regex to validate a correct prefixed name. */ const NAMESPACE_REGEX:RegExp = /^([A-Za-z](([A-Za-z_\-0-9]|\.)*[A-Za-z_\-0-9])?)?$/; /** * The token of the prefixed named term. * * @see https://www.w3.org/TR/sparql11-...
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { ColleteralComponent } from './colleteral.component'; describe('ColleteralComponent', () => { let component: ColleteralComponent; let fixture: ComponentFixture<ColleteralComponent>; beforeEach(waitForAsync(() => { Test...
import { GoTrueClient } from '@supabase/gotrue-js'; import { RealtimeClientOptions } from '@supabase/realtime-js'; declare type GoTrueClientOptions = ConstructorParameters<typeof GoTrueClient>[0]; export interface SupabaseAuthClientOptions extends GoTrueClientOptions { } export declare type GenericObject = { [key: ...
import { Component, OnInit, Inject } from "@angular/core"; import { FormGroup, FormBuilder, Validators } from "@angular/forms"; import { Subscription } from "rxjs"; import { UploadFileService } from "app/services/File.service"; import { MatDialogRef, MAT_DIALOG_DATA } from "@angular/material"; import { HttpErrorRespons...
import * as React from 'react'; import TransitionProgressContext from './TransitionProgressContext'; export default function useTransitionProgress() { const progress = React.useContext(TransitionProgressContext); if (progress === undefined) { throw new Error( "Couldn't find values for transition progre...
import { google } from '../build/pbjs'; import { BatchMethod, detectBatchMethod, requestType, responseObservable, responsePromise, responseType, } from './types'; import { Code, code, imp, joinCode } from 'ts-poet'; import { maybeAddComment, singular } from './utils'; import SourceInfo, { Fields } from './s...
import ListItem from '@material-ui/core/ListItem' import ListItemIcon from '@material-ui/core/ListItemIcon' import ListItemText from '@material-ui/core/ListItemText' import Icon from '@mdi/react' import { mdiAccount, mdiLogoutVariant } from '@mdi/js' import { List } from '@material-ui/core' import { Link } from 'react...
import * as Path from 'path' import { remote } from 'electron' import { Disposable } from 'event-kit' import { Account } from '../../models/account' import { Repository } from '../../models/repository' import { WorkingDirectoryFileChange, CommittedFileChange, } from '../../models/status' import { DiffSelection } ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License import { ActivityExtensions, IProviderTokenResponse, ITelemetryLuisRecognizer, LocaleConfiguration, MultiProviderAuthDialog, ResponseManager, SkillConfigurationBase } from 'bot-solution'; import {...
declare module '*.html' { const value: string; export default value }
import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent { title = 'blogFrontend'; }
const convert = (type: string) => { const bytesExp = new RegExp(/^byte(s)?(\d+)?(\[])?$/, 'mg') const intExp = new RegExp(/^u?int(\d+)?(\[])?$/, 'mg') const addressExp = new RegExp(/^address(\[])?$/, 'mg') const boolExp = new RegExp(/^bool(\[])?$/) if(boolExp.test(type)) { return type.match(/\[]/) ? 'boolean[]'...
import { createParamDecorator, ExecutionContext, UnauthorizedException } from '@nestjs/common'; import { GqlExecutionContext } from '@nestjs/graphql'; export interface CurrentUserOptions { required?: boolean; } export const CurrentUser: (options?: CurrentUserOptions) => ParameterDecorator = createParamDecorator( ...
import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types"; export const definition: IconDefinition; export const faCodeMerge: IconDefinition; export const prefix: IconPrefix; export const iconName: IconName; export const width: number; export const height: number; export const ligatur...
import React from 'react'; import Footer from 'components/structure/Footer'; import { RiHome2Line } from 'react-icons/ri'; import { Link } from 'gatsby'; type LayoutProps = { showHomeButton?: boolean; hideFooter?: boolean; }; const Layout: React.FC< LayoutProps & React.PropsWithChildren<Record<string, unknown>> > ...
import { Document } from 'mongoose'; export interface UserCenter extends Document { readonly headStyle: string; readonly historyShow: boolean; readonly navOneShow: boolean; readonly navOneImage: string; readonly navOneLink: string; readonly navTwoShow: boolean; readonly navTwoImage: string; readonly nav...
import bs58 from 'bs58'; import invariant from 'assert'; import {Buffer} from 'buffer'; import {Token, u64} from '@panoptes/spl-token'; import {expect, use} from 'chai'; import chaiAsPromised from 'chai-as-promised'; import { Account, Authorized, Connection, SystemProgram, Transaction, LAMPORTS_PER_PANO, ...
import InitCliService, { CliInterface as InitCliInterface} from "@root/app/init/services/CliService"; export interface CliInterface extends InitCliInterface{ } const CliService = InitCliService.extend<CliInterface>({ }); export default CliService;
import { IUserState } from '../types'; import { IRootState } from '../index'; import { IMap, IUserPool } from '../../types'; const user = (state: IRootState): IUserState => state.user; const pools = (state: IRootState): IMap<IUserPool> => user(state).pools; const poolById = (state: IRootState, id: string): IUserPool =...
import {ResponseBase} from './response-base'; export interface ValidatedResponseBase extends ResponseBase { validationResults: { [propertyName: string]: string[] }; value: any; }
export class Endpoint { /** * Constructs a new endpoint given an endpoint URL. */ constructor(url: string); /** * The host portion of the endpoint including the port, e.g., example.com:80. */ host: string; /** * The host portion of the endpoint, e.g., example.com. */ ...
import * as React from 'react'; import CodeIcon from '@findable/icon/glyph/code'; import { Directory } from '../../../types'; import renderNav from '../utils/renderNav'; import buildNavGroups from '../utils/buildNavGroups'; export type PatternsNavProps = { pathname: string; patterns: Directory; onClick?: (e: Eve...
export interface Type { href: string; } export interface Links { type: Type; } export interface Breed { name: string; _links: Links; }
import { ListrRenderer } from 'listr'; class TestRenderer implements ListrRenderer { static get nonTTY() { return true; } nonTTY = true; render = () => {}; end = () => {}; } export { TestRenderer };
/* eslint-disable no-magic-numbers */ // eslint-disable-next-line jest/no-mocks-import import { text } from 'lexical-analysis/__mocks__/index' import { LexerImpl } from 'lexical-analysis/lexer' import { SyntaxKind } from 'types' import { ErrorCallback } from 'types/lexer' describe('lexerImpl - scan - number:\n A numbe...
export default class RpcError { code: number; message: string; data: any; setData(obj: any): void; getData<T>(): T; }
/* * 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 { isEmpty, isEqual, get } from 'lodash/fp'; import { useEffect, useSta...
import React from 'react'; import { Icon, IconProps } from '@chakra-ui/icon'; export const WalkIcon = (props: IconProps) => ( <Icon viewBox="0 0 512 512" fill="currentcolor" stroke="currentcolor" {...props} > <path d="M312.55 479.9l-56.42-114-44.62-57a72.37 72.37 0 01-10.06-36.9V143.64H21...
/** * @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 * as ts from 'typescript'; import {ParsedConfiguration} from '../../..'; import {FileSystem} from '../../../s...
import { configureStore } from '@reduxjs/toolkit'; import authReducer from './reducers/authSlice'; import { routerReducer } from 'react-router-redux'; export default configureStore({ reducer: { routing: routerReducer, auth: authReducer, }, //@ts-ignore middleware: (getDefaultMiddleware) => getDefaul...
/*--------------------------------------------------------------------------------------------- * Copyright (c) IBAX All rights reserved. * See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { State } from...
import { CameraButton, ControlBar, EndCallButton, FluentThemeProvider, MicrophoneButton, ScreenShareButton } from '@azure/communication-react'; import React from 'react'; export const FluentThemeProviderSnippet = (): JSX.Element => { return ( <FluentThemeProvider> <ControlBar> <CameraBu...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { LazyRoutingModule } from './lazy-routing.module'; import { LazyComponentComponent } from './lazy-component/lazy-component.component'; import { NgxPermissionsModule } from 'eks-ngx-permissions'; @NgModule({ imports: [ ...
import Component from "./component"; export interface ComponentDecoratorOptions { selector: string; style?: string; template?: string; } const ComponentDecorator = (options: ComponentDecoratorOptions) => ( component: new () => any ) => { console.assert( component === Component || component.prototype ins...
import { EntityRepository, Repository } from 'typeorm'; import { Site } from './site.entity'; @EntityRepository(Site) export class SiteRepository extends Repository<Site> {}
import { Module } from '@nestjs/common'; import { ProductController } from './product.controller'; import { ProductService } from './product.service'; import { MongooseModule } from '@nestjs/mongoose'; //importo modulo mongoose import { ProductSchema } from './schemas/product.schema'; @Module({ imports: [ Mongoo...
import 'mocha'; describe('processArgs', function() { it('should handle suppress meta options correctly'); it('should process the emojis argument correctly'); });
import * as vscode from 'vscode'; import { promisify } from 'util'; import * as fs from 'fs'; export const constants = { UV_FS_SYMLINK_DIR: 1, UV_FS_SYMLINK_JUNCTION: 2, O_RDONLY: 0, O_WRONLY: 1, O_RDWR: 2, UV_DIRENT_UNKNOWN: 0, UV_DIRENT_FILE: 1, UV_DIRENT_DIR: 2, UV_DIRENT_LINK: 3, UV_DIRENT_FIFO...
import { Construct, IResource as IResourceBase, Resource as ResourceConstruct } from '@aws-cdk/core'; import { CfnResource, CfnResourceProps } from './apigateway.generated'; import { Integration } from './integration'; import { Method, MethodOptions } from './method'; import { RestApi } from './restapi'; export interf...
import fs from 'fs-extra'; import git from 'isomorphic-git'; import http from 'isomorphic-git/http/node'; import { apiTokenFromEnvironment } from '../github/environment'; import { getOwnerAndRepo } from './remote'; /** * Use a GitHub app token to auth the Git push. * * This defaults to the `GITHUB_API_TOKEN` and ...
// test("Get Special Char Unicode", () => { // ;["ٵ", "ٶ", "ٷ", "ٸ", "ء"].forEach((item) => { // console.log(`${item} -> ${item.charCodeAt(0)}`); // }); // }) test("Get Normal Char Unicode", () => { const tmp = [ "ا", "ب", "د", "ى", "ف", "گ", ...
import {BaseErrorRestResponse, BaseSuccessRestResponse} from "./BaseRestResponse"; export interface ReadyToTransferItemData { id: number; item_id: string; give_amount: string; image: string; price: number; game: string; name: string; status: number; } export interface ReadyToTransferData { id: numbe...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-live-video-session', templateUrl: './live-video-session.component.html', styleUrls: ['./live-video-session.component.css'] }) export class LiveVideoSessionComponent implements OnInit { constructor() { } ngOnInit() { } }
/* * Copyright (c) Facebook, Inc. and its affiliates. */ import React from 'react'; export { Challenges } from './Challenges'; export function Hint({ children }: { children: React.ReactNode }) { return <div>{children}</div>; } export function Solution({ children }: { children: React.ReactNode }) { return <div>...
import { DocumentNode, GraphQLError, ExecutionResult } from 'graphql'; import { print } from 'graphql/language/printer'; import { isEqual } from 'apollo-utilities'; import { NetworkStatus } from '../core/networkStatus'; export type QueryStoreValue = { document: DocumentNode; variables: Object; previousVariables...
// main interface Drive { id: string name: string slug: string mounted: string created_at: string updated_at: string } // exports export default Drive
import classNames from 'classnames'; import type { ComponentProps, FC, PropsWithChildren } from 'react'; import { useState } from 'react'; import { excludeClassName } from '../../helpers/exclude'; import { useTheme } from '../Flowbite/ThemeContext'; import type { Duration } from './ToastContext'; import { ToastContext ...
import * as React from "react" import * as typographyStyles from "../../styles/typography.module.css" export default { title: "개발자 도구(DevTools)", description: "React Hook Form 개발자 도구는 폼 디버깅과 유효성 검사를 쉽게 만들어줍니다.", install: "설치 방법", step1: ( <> <b className={typographyStyles.note}>1단계: </b>{" "} ...
declare module 'core-js-compat' { interface CompatOptions { targets: string | string[]; filter?: RegExp; version?: string; } interface CompatResult { list: string[]; targets: Record<string, Record<string, string>>; } function compat(options: CompatOptions): ...
import { Module } from '@nestjs/common'; import { JwtModule } from '@nestjs/jwt'; import { UserModule } from 'src/user/user.module'; import { AuthController } from './auth.controller'; import { AuthProvider } from './auth.provider'; import * as config from 'config'; @Module({ imports: [ JwtModule.register({ ...
import { Injectable } from '@angular/core'; import { Actions, createEffect, ofType } from '@ngrx/effects'; import { tap, map, catchError, mergeMap, first } from 'rxjs/operators'; import { CreateFormEffectsHelper } from './create-form-effects.helper'; import { CreateFormActionTypes, SaveRequest } from './create-form.act...
import React, { forwardRef } from 'react'; import type { IconBaseProps } from '../icon/IconBase'; import IconBase from '../icon/IconBase'; const Ethernet = forwardRef<HTMLSpanElement, IconBaseProps>(({ svgProps, ...restProps }, ref) => { return ( <IconBase aria-label="ethernet" {...restProps} ref={ref}> <s...
import { CatColor } from '../interfaces/cat'; export interface UpdateOneDTO { name?: string; age?: number; color?: CatColor; }
import React from 'react'; import { CartesianGrid, Label, Line, LineChart, ResponsiveContainer, Tooltip, XAxis, YAxis } from 'recharts'; import { Summary } from '../dashboard/summarySlice'; interface SeriesData { summary: Summary, readings: Datapoint[] } export interface Datapoint { x: string, y: number, u...
import { Position } from 'geojson' class LocationModel { _id: number _name: string _address: string | null | undefined _town: string | null | undefined _state: string | null | undefined _postcode: string | null | undefined _region: string | null | undefined _country: string | null | undefined _latitu...
import { assert, expect } from "chai"; import * as sinon from "sinon"; import { Formatter } from "export/formatter"; import { Paragraph, TextRun } from "file"; import { CoreProperties } from "file/core-properties"; import { Attributes } from "file/xml-components"; describe("Formatter", () => { let formatter: Form...
// @out: tests/cases/compiler/testfiles/fooResult.js // @sourcemap: true // @useCaseSensitiveFileNames: true // @Filename: testFiles/app.ts // Note in the out result we are using same folder name only different in casing // Since this is case sensitive, the folders are different and hence the relative paths in sourcema...