type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
MethodDeclaration
public getAllCategory():Observable<any[]> { return this._shareService.httpGet(Config.URL+this.URI+"/getall"); }
xuantruong050192/ATNB_vs2
src/app/service/category.service.ts
TypeScript
MethodDeclaration
public getTotalRecord(skip:number, pagesize:number):Observable<any[]> { return this._shareService.httpGet(Config.URL+this.URI+"/gettotalrecord"); }
xuantruong050192/ATNB_vs2
src/app/service/category.service.ts
TypeScript
MethodDeclaration
public SaveCategory(entity:Category,isNew:boolean):Observable<any> { if(isNew) { return this._shareService.httpPost<Category>(Config.URL+ this.URI,entity); } else { return this._shareService.httpPut<Category>(Config.URL+ this.URI,entity); } }
xuantruong050192/ATNB_vs2
src/app/service/category.service.ts
TypeScript
MethodDeclaration
deleteCategory<Category>(objectCategory:Category): Observable < any > { return this._shareService.httpDelete(Config.URL+ this.URI,objectCategory); }
xuantruong050192/ATNB_vs2
src/app/service/category.service.ts
TypeScript
ArrowFunction
(props: ProviderProps) => { const context = React.useContext(Context) return <GymnastProvider {...context} {...props} /> }
gymnastjs/gymnast
src/gymnastProvider/index.tsx
TypeScript
ClassDeclaration
class GymnastProvider extends React.Component<ProviderProps, ProviderState> { static getDerivedStateFromProps(props: ProviderProps, state: ProviderState) { const { children, ...restProps } = props return { ...state, ...restProps, } } state = defaults render() { const { state } = ...
gymnastjs/gymnast
src/gymnastProvider/index.tsx
TypeScript
TypeAliasDeclaration
type ProviderProps = GymnastContextType & { children?: React.ReactNode }
gymnastjs/gymnast
src/gymnastProvider/index.tsx
TypeScript
TypeAliasDeclaration
type ProviderState = GymnastContextType
gymnastjs/gymnast
src/gymnastProvider/index.tsx
TypeScript
MethodDeclaration
static getDerivedStateFromProps(props: ProviderProps, state: ProviderState) { const { children, ...restProps } = props return { ...state, ...restProps, } }
gymnastjs/gymnast
src/gymnastProvider/index.tsx
TypeScript
MethodDeclaration
render() { const { state } = this const { children } = this.props return <Context.Provider value={state}>{children}</Context.Provider> }
gymnastjs/gymnast
src/gymnastProvider/index.tsx
TypeScript
ArrowFunction
(_, acc) => acc + 1
caribeedu/the-coolest-elevator
src/app/services/random-occupant/random-occupant.service.ts
TypeScript
ArrowFunction
(floor: Number) => !occupiedFloors.includes(floor) && floor !== currentElevatorFloor
caribeedu/the-coolest-elevator
src/app/services/random-occupant/random-occupant.service.ts
TypeScript
ArrowFunction
() => this.generateNewOccupant()
caribeedu/the-coolest-elevator
src/app/services/random-occupant/random-occupant.service.ts
TypeScript
ArrowFunction
(arrivalFloor: number) => { const occupiedFloors: Array<Number> = this.occupiedFloors$.value; // Gets the arrival floor index in occupied floors, if has any occupant const arrivalFloorIndex: number = occupiedFloors.indexOf(arrivalFloor); if (arrivalFloorIndex > -1) { occupiedFloors.splice(arrival...
caribeedu/the-coolest-elevator
src/app/services/random-occupant/random-occupant.service.ts
TypeScript
ClassDeclaration
@Injectable({ providedIn: 'root' }) export class RandomOccupantService { /* Interval of new occupants appearing in the building, in seconds */ public readonly appearInterval$: BehaviorSubject<number> = new BehaviorSubject<number>(15); /* Floors who's has occupants awaiting */ public readonly occupiedFloors$: Beha...
caribeedu/the-coolest-elevator
src/app/services/random-occupant/random-occupant.service.ts
TypeScript
MethodDeclaration
/** * getRandomAvailableFloor * * Gets a random floor with no occupants and where the elevator isn't in * * @returns Floor number, if hasn't any available, returns null */ public getRandomAvailableFloor(): Number | null { const totalFloorsNumber: number = this.buildingService.numberOfFloors$.value as numb...
caribeedu/the-coolest-elevator
src/app/services/random-occupant/random-occupant.service.ts
TypeScript
MethodDeclaration
/** * generateNewOccupant * * Add's new occupant to random available floor on building */ public generateNewOccupant(): void { const randomFloor: Number | null = this.getRandomAvailableFloor(); if (randomFloor) { const newOccupiedFloors: Array<Number> = this.occupiedFloors$.value; newOccupiedFloors....
caribeedu/the-coolest-elevator
src/app/services/random-occupant/random-occupant.service.ts
TypeScript
MethodDeclaration
/** * handleElevatorArriving * * Handles elevator service arrive emitter, removing awaiting occupants from the recent reached floor */ public handleElevatorArriving(): void { this.elevatorService.arrived$.subscribe( (arrivalFloor: number) => { const occupiedFloors: Array<Number> = this.occupiedFloors$....
caribeedu/the-coolest-elevator
src/app/services/random-occupant/random-occupant.service.ts
TypeScript
MethodDeclaration
/** * changeOccupantsAppearInterval * * Changes the occupants appear interval timing * * @param interval - Interval in seconds */ public changeOccupantsAppearInterval(interval: number): void { if (interval > 0) { this.appearInterval$.next(interval); } }
caribeedu/the-coolest-elevator
src/app/services/random-occupant/random-occupant.service.ts
TypeScript
ClassDeclaration
@Controller('profile') export class ProfileController { constructor(private readonly profileService: ProfileService) {} @Get(':username') async getProfile(@User('id') currentUserId: number, @Param('username') profileUsername: string): Promise<ProfileResponseInterface> { const profile = await this.profileSer...
undefined-person/Nest-Course
src/profile/profile.controller.ts
TypeScript
MethodDeclaration
@Get(':username') async getProfile(@User('id') currentUserId: number, @Param('username') profileUsername: string): Promise<ProfileResponseInterface> { const profile = await this.profileService.getProfile(currentUserId, profileUsername) return this.profileService.buildProfileResponse(profile) }
undefined-person/Nest-Course
src/profile/profile.controller.ts
TypeScript
MethodDeclaration
@Post(':username/follow') @UseGuards(AuthGuard) async followProfile(@User('id') currentUserId: number, @Param('username') profileUsername: string): Promise<ProfileResponseInterface> { const profile = await this.profileService.followProfile(currentUserId, profileUsername) return this.profileService.buildPro...
undefined-person/Nest-Course
src/profile/profile.controller.ts
TypeScript
MethodDeclaration
@Delete(':username/follow') @UseGuards(AuthGuard) async unfollowProfile(@User('id') currentUserId: number, @Param('username') profileUsername: string): Promise<ProfileResponseInterface> { const profile = await this.profileService.unfollowProfile(currentUserId, profileUsername) return this.profileService.bu...
undefined-person/Nest-Course
src/profile/profile.controller.ts
TypeScript
ArrowFunction
({Ref}) => ({ x_source: [ Ref(Range), () => new DataRange1d() ], y_source: [ Ref(Range), () => new DataRange1d() ], x_scale: [ Ref(Scale), () => new LinearScale() ], y_scale: [ Ref(Scale), () => new LinearScale() ], x_target: [ Ref(Range) ], y_target: [ Ref(Range) ], })
Ariel-Yeung/bokeh
bokehjs/src/lib/models/canvas/coordinates.ts
TypeScript
ArrowFunction
() => new DataRange1d()
Ariel-Yeung/bokeh
bokehjs/src/lib/models/canvas/coordinates.ts
TypeScript
ArrowFunction
() => new LinearScale()
Ariel-Yeung/bokeh
bokehjs/src/lib/models/canvas/coordinates.ts
TypeScript
ArrowFunction
({Ref}) => ({ source_scale: [ Ref(Scale) ], target_scale: [ Ref(Scale) ], })
Ariel-Yeung/bokeh
bokehjs/src/lib/models/canvas/coordinates.ts
TypeScript
ArrowFunction
(x) => target_compute(source_compute(x))
Ariel-Yeung/bokeh
bokehjs/src/lib/models/canvas/coordinates.ts
TypeScript
ArrowFunction
(sx) => source_invert(target_invert(sx))
Ariel-Yeung/bokeh
bokehjs/src/lib/models/canvas/coordinates.ts
TypeScript
ClassDeclaration
export class CoordinateTransform { readonly x_scale: Scale readonly y_scale: Scale readonly x_source: Range readonly y_source: Range readonly ranges: readonly [Range, Range] readonly scales: readonly [Scale, Scale] constructor(x_scale: Scale, y_scale: Scale) { this.x_scale = x_scale this.y_sca...
Ariel-Yeung/bokeh
bokehjs/src/lib/models/canvas/coordinates.ts
TypeScript
ClassDeclaration
export abstract class CoordinateMapping extends Model { override properties: CoordinateMapping.Props constructor(attrs?: Partial<CoordinateMapping.Attrs>) { super(attrs) } static init_CoordinateMapping(): void { this.define<CoordinateMapping.Props>(({Ref}) => ({ x_source: [ Ref(Range), () => ne...
Ariel-Yeung/bokeh
bokehjs/src/lib/models/canvas/coordinates.ts
TypeScript
ClassDeclaration
export class CompositeScale extends Scale { override properties: CompositeScale.Props constructor(attrs?: Partial<CompositeScale.Attrs>) { super(attrs) } static init_CompositeScale(): void { this.internal<CompositeScale.Props>(({Ref}) => ({ source_scale: [ Ref(Scale) ], target_scale: [ Re...
Ariel-Yeung/bokeh
bokehjs/src/lib/models/canvas/coordinates.ts
TypeScript
InterfaceDeclaration
export interface CoordinateMapping extends CoordinateMapping.Attrs {}
Ariel-Yeung/bokeh
bokehjs/src/lib/models/canvas/coordinates.ts
TypeScript
InterfaceDeclaration
export interface CompositeScale extends CompositeScale.Attrs {}
Ariel-Yeung/bokeh
bokehjs/src/lib/models/canvas/coordinates.ts
TypeScript
TypeAliasDeclaration
export type Props = Model.Props & { x_source: p.Property<Range> y_source: p.Property<Range> x_scale: p.Property<Scale> y_scale: p.Property<Scale> x_target: p.Property<Range> y_target: p.Property<Range> }
Ariel-Yeung/bokeh
bokehjs/src/lib/models/canvas/coordinates.ts
TypeScript
TypeAliasDeclaration
export type Props = Scale.Props & { source_scale: p.Property<Scale> target_scale: p.Property<Scale> }
Ariel-Yeung/bokeh
bokehjs/src/lib/models/canvas/coordinates.ts
TypeScript
MethodDeclaration
map_to_screen(xs: Arrayable<number>, ys: Arrayable<number>): [ScreenArray, ScreenArray] { const sxs = this.x_scale.v_compute(xs) const sys = this.y_scale.v_compute(ys) return [sxs, sys] }
Ariel-Yeung/bokeh
bokehjs/src/lib/models/canvas/coordinates.ts
TypeScript
MethodDeclaration
map_from_screen(sxs: Arrayable<number>, sys: Arrayable<number>): [FloatArray, FloatArray] { const xs = this.x_scale.v_invert(sxs) const ys = this.y_scale.v_invert(sys) return [xs, ys] }
Ariel-Yeung/bokeh
bokehjs/src/lib/models/canvas/coordinates.ts
TypeScript
MethodDeclaration
static init_CoordinateMapping(): void { this.define<CoordinateMapping.Props>(({Ref}) => ({ x_source: [ Ref(Range), () => new DataRange1d() ], y_source: [ Ref(Range), () => new DataRange1d() ], x_scale: [ Ref(Scale), () => new LinearScale() ], y_scale: [ Ref(Scale), () => new LinearScale() ]...
Ariel-Yeung/bokeh
bokehjs/src/lib/models/canvas/coordinates.ts
TypeScript
MethodDeclaration
private _get_scale(range: Range, scale: Scale, target: Range): Scale { const factor_range = range instanceof FactorRange const categorical_scale = scale instanceof CategoricalScale if (factor_range != categorical_scale) { throw new Error(`Range ${range.type} is incompatible is Scale ${scale.type}`) ...
Ariel-Yeung/bokeh
bokehjs/src/lib/models/canvas/coordinates.ts
TypeScript
MethodDeclaration
get_transform(frame: CartesianFrame): CoordinateTransform { const {x_source, x_scale, x_target} = this const x_source_scale = this._get_scale(x_source, x_scale, x_target) const {y_source, y_scale, y_target} = this const y_source_scale = this._get_scale(y_source, y_scale, y_target) const xscale = ...
Ariel-Yeung/bokeh
bokehjs/src/lib/models/canvas/coordinates.ts
TypeScript
MethodDeclaration
static init_CompositeScale(): void { this.internal<CompositeScale.Props>(({Ref}) => ({ source_scale: [ Ref(Scale) ], target_scale: [ Ref(Scale) ], })) }
Ariel-Yeung/bokeh
bokehjs/src/lib/models/canvas/coordinates.ts
TypeScript
MethodDeclaration
override compute(x: number): number { return this.s_compute(x) }
Ariel-Yeung/bokeh
bokehjs/src/lib/models/canvas/coordinates.ts
TypeScript
MethodDeclaration
override v_compute(xs: Arrayable<number>): ScreenArray { const {s_compute} = this return map(xs, s_compute) as ScreenArray // XXX }
Ariel-Yeung/bokeh
bokehjs/src/lib/models/canvas/coordinates.ts
TypeScript
MethodDeclaration
override invert(sx: number): number { return this.s_invert(sx) }
Ariel-Yeung/bokeh
bokehjs/src/lib/models/canvas/coordinates.ts
TypeScript
MethodDeclaration
override v_invert(sxs: Arrayable<number>): FloatArray { const {s_invert} = this return map(sxs, s_invert) as FloatArray // XXX }
Ariel-Yeung/bokeh
bokehjs/src/lib/models/canvas/coordinates.ts
TypeScript
FunctionDeclaration
function Index() { const { pathname } = useLocation() useEffect(() => { document.title = `React-${getDocumentTitle(pathname)}` }, [pathname]) return ( <Layout style={{ height: '100vh', width: '100vw' }}
windego/cra-template-windego-typescript
template/src/layouts/index.tsx
TypeScript
ArrowFunction
() => { document.title = `React-${getDocumentTitle(pathname)}` }
windego/cra-template-windego-typescript
template/src/layouts/index.tsx
TypeScript
ArrowFunction
() => { afterEach(() => { jest.resetAllMocks(); }); it('renders checkbox', () => { const tree = mount(<Checkbox checked />); expect(toJson(tree)).toMatchSnapshot(); }); it('renders checkbox with the right default props', () => { const tree = mount(<Checkbox checked={false} />); expect(t...
NicoleRauch/react-three-state-checkbox
tests/Checkbox.spec.tsx
TypeScript
ArrowFunction
() => { const tree = mount(<Checkbox checked />); expect(toJson(tree)).toMatchSnapshot(); }
NicoleRauch/react-three-state-checkbox
tests/Checkbox.spec.tsx
TypeScript
ArrowFunction
() => { const tree = mount(<Checkbox checked={false} />); expect(toJson(tree)).toMatchSnapshot(); }
NicoleRauch/react-three-state-checkbox
tests/Checkbox.spec.tsx
TypeScript
ArrowFunction
() => { const tree = mount( <Checkbox checked indeterminate className="test-class" style={{ margin: 0 }}
NicoleRauch/react-three-state-checkbox
tests/Checkbox.spec.tsx
TypeScript
ArrowFunction
() => { const onChange = jest.fn(); const wrapper = mount(<Checkbox checked onChange={onChange} />); // find checkbox const result = wrapper.find('input'); expect(result).toHaveLength(1); const checkbox = result.at(0); // simulate checkbox change expect(onChange).not.toHaveBeenCalled(...
NicoleRauch/react-three-state-checkbox
tests/Checkbox.spec.tsx
TypeScript
ArrowFunction
() => this.addToast({ icon: "ban-circle", intent: Intent.DANGER, message: "You cannot undo the past.", })
AaronJRubin/blueprint
packages/docs-app/src/examples/core-examples/toastExample.tsx
TypeScript
ArrowFunction
() => this.addToast(this.TOAST_BUILDERS[2])
AaronJRubin/blueprint
packages/docs-app/src/examples/core-examples/toastExample.tsx
TypeScript
ArrowFunction
() => this.addToast({ message: "Isn't parting just the sweetest sorrow?" })
AaronJRubin/blueprint
packages/docs-app/src/examples/core-examples/toastExample.tsx
TypeScript
ArrowFunction
(position: ToasterPosition) => this.setState({ position })
AaronJRubin/blueprint
packages/docs-app/src/examples/core-examples/toastExample.tsx
TypeScript
ArrowFunction
autoFocus => this.setState({ autoFocus })
AaronJRubin/blueprint
packages/docs-app/src/examples/core-examples/toastExample.tsx
TypeScript
ArrowFunction
canEscapeKeyClear => this.setState({ canEscapeKeyClear })
AaronJRubin/blueprint
packages/docs-app/src/examples/core-examples/toastExample.tsx
TypeScript
ArrowFunction
(didTimeoutExpire: boolean) => { if (!didTimeoutExpire) { // user dismissed toast with click window.clearInterval(this.progressToastInterval); } }
AaronJRubin/blueprint
packages/docs-app/src/examples/core-examples/toastExample.tsx
TypeScript
ArrowFunction
() => { let progress = 0; const key = this.toaster.show(this.renderProgress(0)); this.progressToastInterval = window.setInterval(() => { if (this.toaster == null || progress > 100) { window.clearInterval(this.progressToastInterval); } else { ...
AaronJRubin/blueprint
packages/docs-app/src/examples/core-examples/toastExample.tsx
TypeScript
ArrowFunction
() => { if (this.toaster == null || progress > 100) { window.clearInterval(this.progressToastInterval); } else { progress += 10 + Math.random() * 20; this.toaster.show(this.renderProgress(progress), key); } }
AaronJRubin/blueprint
packages/docs-app/src/examples/core-examples/toastExample.tsx
TypeScript
ArrowFunction
(value: number) => { if (value) { this.setState({ maxToasts: Math.max(1, value) }); } else { this.setState({ maxToasts: undefined }); } }
AaronJRubin/blueprint
packages/docs-app/src/examples/core-examples/toastExample.tsx
TypeScript
ClassDeclaration
export class ToastExample extends React.PureComponent<IExampleProps<IBlueprintExampleData>, IToasterProps> { public state: IToasterProps = { autoFocus: false, canEscapeKeyClear: true, position: Position.TOP, }; private TOAST_BUILDERS: IToastDemo[] = [ { action: ...
AaronJRubin/blueprint
packages/docs-app/src/examples/core-examples/toastExample.tsx
TypeScript
TypeAliasDeclaration
type IToastDemo = IToastProps & { button: string };
AaronJRubin/blueprint
packages/docs-app/src/examples/core-examples/toastExample.tsx
TypeScript
MethodDeclaration
classNames("docs-toast-progress", { [Classes.PROGRESS_NO_STRIPES]: amount
AaronJRubin/blueprint
packages/docs-app/src/examples/core-examples/toastExample.tsx
TypeScript
MethodDeclaration
amount <
AaronJRubin/blueprint
packages/docs-app/src/examples/core-examples/toastExample.tsx
TypeScript
ClassDeclaration
@Component({ name: 'PopupDatePicker' }) export default class PopupDatePicker extends Vue { @Prop() public datePicker: VNode; @Prop() public date?: any; @Prop({type: Boolean, default: false}) public disabled: boolean; @Prop({type: Boolean, default: true}) public editable: boolean; @Inject({from: 'st...
AioneWang/antd-mobile-vue
src/packages/vmc-date-picker/popup.tsx
TypeScript
MethodDeclaration
private onDismiss(): any { if (this.store.onDismiss) { this.store.onDismiss(); } this.$emit('dismiss'); }
AioneWang/antd-mobile-vue
src/packages/vmc-date-picker/popup.tsx
TypeScript
MethodDeclaration
public onOk(v) { if (this.store.onOk) { this.store.onOk(); } this.$emit('change', v); this.$emit('ok', v); }
AioneWang/antd-mobile-vue
src/packages/vmc-date-picker/popup.tsx
TypeScript
MethodDeclaration
public render() { // @ts-ignore return (<PopupPicker attrs={ { picker: this.datePicker, value: this.date, ...this.$props, ...this.$attrs } }
AioneWang/antd-mobile-vue
src/packages/vmc-date-picker/popup.tsx
TypeScript
FunctionDeclaration
function LoadoutBuilderItemCtrl( this: IController & { itemData: DimItem; }, $scope, $element, ngDialog, dimStoreService: StoreServiceType ) { 'ngInject'; const vm = this; let dialogResult: any = null; extend(vm, { itemClicked(item: DimItem, e) { e.stopPropagation(); if (dial...
mikevb1/DIM
src/app/loadout-builder/loadout-builder-item.component.ts
TypeScript
ArrowFunction
(store) => { return store.items.filter((i) => i.hash === item.hash); }
mikevb1/DIM
src/app/loadout-builder/loadout-builder-item.component.ts
TypeScript
ArrowFunction
(i) => i.hash === item.hash
mikevb1/DIM
src/app/loadout-builder/loadout-builder-item.component.ts
TypeScript
ArrowFunction
(i) => i.amount
mikevb1/DIM
src/app/loadout-builder/loadout-builder-item.component.ts
TypeScript
ArrowFunction
() => { dialogResult = null; }
mikevb1/DIM
src/app/loadout-builder/loadout-builder-item.component.ts
TypeScript
MethodDeclaration
itemClicked(item: DimItem, e) { e.stopPropagation(); if (dialogResult) { if (ngDialog.isOpen(dialogResult.id)) { dialogResult.close(); dialogResult = null; } } else if (vm.shiftClickCallback && e.shiftKey) { vm.shiftClickCallback(vm.itemData); } else...
mikevb1/DIM
src/app/loadout-builder/loadout-builder-item.component.ts
TypeScript
MethodDeclaration
controller() { const vm = this; extend(vm, { item, compareItems, compareItem: _.first(compareItems), compareItemCount, setCompareItem(item) { this.compareItem = item; } }); ...
mikevb1/DIM
src/app/loadout-builder/loadout-builder-item.component.ts
TypeScript
MethodDeclaration
setCompareItem(item) { this.compareItem = item; }
mikevb1/DIM
src/app/loadout-builder/loadout-builder-item.component.ts
TypeScript
MethodDeclaration
close() { if (dialogResult) { dialogResult.close(); } $scope.closeThisDialog(); }
mikevb1/DIM
src/app/loadout-builder/loadout-builder-item.component.ts
TypeScript
MethodDeclaration
$onDestroy() { if (dialogResult) { dialogResult.close(); } }
mikevb1/DIM
src/app/loadout-builder/loadout-builder-item.component.ts
TypeScript
ArrowFunction
({ href, children }) => ( <a href={href}
melnychukvitaliy/blog
components/ExternalLink.tsx
TypeScript
InterfaceDeclaration
interface IExternalLinkProps { href: string children: ReactChild }
melnychukvitaliy/blog
components/ExternalLink.tsx
TypeScript
InterfaceDeclaration
interface LibProps { text: string; }
CeamKrier/react-npm-boilerplate
lib/index.d.ts
TypeScript
ClassDeclaration
export class RoleInputIdDto { @ApiProperty() @IsUUID() @IsNotEmpty() id: string; }
williamkoller/api-restful-pandora
src/modules/roles/dtos/role-input/role-input-id.dto.ts
TypeScript
ArrowFunction
(props): ReactElement => { const { initialState, data, onChange, disabled } = props; const [showOptions, setShowOptions] = useState(false); const containerRef = useRef(null); const { initialize, selectedOptions, setSelectedOptions } = useContext(DataContext); useEffect(() => { initialize(data, initialS...
smitpatel1010/multi-select-tree
src/components/MultiSelectTreeComponent/MultiSelectTreeComponent.tsx
TypeScript
ArrowFunction
() => { initialize(data, initialState); }
smitpatel1010/multi-select-tree
src/components/MultiSelectTreeComponent/MultiSelectTreeComponent.tsx
TypeScript
ArrowFunction
() => { onChange(selectedOptions); }
smitpatel1010/multi-select-tree
src/components/MultiSelectTreeComponent/MultiSelectTreeComponent.tsx
TypeScript
ArrowFunction
() => { setShowOptions(false); }
smitpatel1010/multi-select-tree
src/components/MultiSelectTreeComponent/MultiSelectTreeComponent.tsx
TypeScript
ArrowFunction
(...args: string[]) => resolve(__dirname, ...args)
loftwah/bytebase
frontend/vite.config.ts
TypeScript
ArrowFunction
() => { // NOTE: the following lines is to solve https://github.com/gitpod-io/gitpod/issues/6719 // tl;dr : the HMR(hot module replacement) will behave differently when VPN is on, and by manually set its port to 443 should prevent this issue. const IS_RUNNING_GITPOD = process.env["GITPOD_WORKSPACE_ID"] !== n...
loftwah/bytebase
frontend/vite.config.ts
TypeScript
ArrowFunction
(path) => path.replace(/^\/api/, "")
loftwah/bytebase
frontend/vite.config.ts
TypeScript
ClassDeclaration
/** * <p>Stops an entities detection job in progress.</p> * <p>If the job state is <code>IN_PROGRESS</code> the job is marked for termination and put * into the <code>STOP_REQUESTED</code> state. If the job completes before it can be stopped, it * is put into the <code>COMPLETED</code> stat...
Tek-Planet/AirBnB
node_modules/@aws-sdk/client-comprehend/types/ts3.4/commands/StopEntitiesDetectionJobCommand.d.ts
TypeScript
TypeAliasDeclaration
export declare type StopEntitiesDetectionJobCommandInput = StopEntitiesDetectionJobRequest;
Tek-Planet/AirBnB
node_modules/@aws-sdk/client-comprehend/types/ts3.4/commands/StopEntitiesDetectionJobCommand.d.ts
TypeScript
TypeAliasDeclaration
export declare type StopEntitiesDetectionJobCommandOutput = StopEntitiesDetectionJobResponse & __MetadataBearer;
Tek-Planet/AirBnB
node_modules/@aws-sdk/client-comprehend/types/ts3.4/commands/StopEntitiesDetectionJobCommand.d.ts
TypeScript
MethodDeclaration
/** * @internal */ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ComprehendClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StopEntitiesDetectionJobCommandInput, StopEntitiesDetectionJobCommandOutput>;
Tek-Planet/AirBnB
node_modules/@aws-sdk/client-comprehend/types/ts3.4/commands/StopEntitiesDetectionJobCommand.d.ts
TypeScript
ArrowFunction
() => { let component: UserTripDetailsComponent; let fixture: ComponentFixture<UserTripDetailsComponent>; beforeEach(async () => { await TestBed.configureTestingModule({ declarations: [ UserTripDetailsComponent ] }) .compileComponents(); }); beforeEach(() => { fixture = TestBed.create...
RAVIN-S/trailerwebsite
src/app/pages/user-trip-details/user-trip-details.component.spec.ts
TypeScript
ArrowFunction
async () => { await TestBed.configureTestingModule({ declarations: [ UserTripDetailsComponent ] }) .compileComponents(); }
RAVIN-S/trailerwebsite
src/app/pages/user-trip-details/user-trip-details.component.spec.ts
TypeScript
ArrowFunction
() => { fixture = TestBed.createComponent(UserTripDetailsComponent); component = fixture.componentInstance; fixture.detectChanges(); }
RAVIN-S/trailerwebsite
src/app/pages/user-trip-details/user-trip-details.component.spec.ts
TypeScript
ArrowFunction
(props: DefaultPageActionsProps) => { const { pollInterval, setPollInterval, loading, refetch, rangeValue, setRangeValue } = props return ( <Actions> <RefreshButtonGroup pollInterval={pollInterval!} setPollInterval={setPollInterval} loading={loading} refetch={refetch} ...
infinite-cat/recap.dev-ui
src/components/page-controls/default-page-actions.component.tsx
TypeScript