type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
ArrowFunction
async () => { const captain = getCaptain(team); // Set the captain to a coach await database.user.update({ data: { type: UserType.coach }, where: { id: captain.id } }); await request(app) .delete(`/teams/current/users/${userToKick.id}`) .set('Authorization', `Bearer ${captainToken}`) ...
Saperlu/UA-api
tests/teams/kickUser.test.ts
TypeScript
ArrowFunction
async () => { await request(app) .delete(`/teams/current/users/${userToKick.id}`) .set('Authorization', `Bearer ${captainToken}`) .expect(403, { error: Error.NotInTeam }); }
Saperlu/UA-api
tests/teams/kickUser.test.ts
TypeScript
InterfaceDeclaration
export interface IWsParams { authorization?: string; }
tugascript/nestjs-graphql-monolith-fastity
src/config/interfaces/ws-params.interface.ts
TypeScript
ArrowFunction
(state) => (statusId: any) => { return state.statusDesc[statusId] ? state.statusDesc[statusId] : "-"; }
Mayank909/job-manager
src/store/modules/util/getters.ts
TypeScript
ArrowFunction
(statusId: any) => { return state.statusDesc[statusId] ? state.statusDesc[statusId] : "-"; }
Mayank909/job-manager
src/store/modules/util/getters.ts
TypeScript
ClassDeclaration
@Component({ selector: 'app-trailer-carousel', templateUrl: './trailer-carousel.component.html', styleUrls: ['./trailer-carousel.component.scss'] }) export class TrailerCarouselComponent { @Input() trailers: TrailerResult[]; config: SwiperConfigInterface; constructor(private sanitizer: DomSanitizer) { ...
TheDrizzyWay/Movie-Cloud
moviecloud/src/app/components/trailer-carousel/trailer-carousel.component.ts
TypeScript
MethodDeclaration
cleanUrl(key: string): SafeResourceUrl { return this.sanitizer.bypassSecurityTrustResourceUrl(`https://www.youtube.com/embed/${key}`); }
TheDrizzyWay/Movie-Cloud
moviecloud/src/app/components/trailer-carousel/trailer-carousel.component.ts
TypeScript
FunctionDeclaration
export function TodoItemList(props: { items: TodoItem[] }) { const { items } = props; if (items.length === 0) { return <strong>No items</strong>; } // Note! Our vdom does not support returning a list of nodes to create. return <div> <div> Items: {items.length} ...
astrellon/teaching
docs/modernApp/createTodoApp/todoItemList.tsx
TypeScript
ArrowFunction
item => <TodoItemView item
astrellon/teaching
docs/modernApp/createTodoApp/todoItemList.tsx
TypeScript
ArrowFunction
() => { const onClickSpy = jest.fn(); const { getByTestId } = render( <ButtonElement data-test="button-element" onClick={onClickSpy} /> ); it('should be selected by passed data-test id and invoke onClickSpy', () => { const button = getByTestId('button-element'); userEvent.click(button); expe...
Lukasz-Semik/lukasz-semik
src/components/Elements/ButtonElement/ButtonElement.spec.tsx
TypeScript
ArrowFunction
() => { const button = getByTestId('button-element'); userEvent.click(button); expect(onClickSpy).toHaveBeenCalled(); }
Lukasz-Semik/lukasz-semik
src/components/Elements/ButtonElement/ButtonElement.spec.tsx
TypeScript
FunctionDeclaration
export async function getStaticProps() { const apolloClient = initializeApollo() const TODAY = new Date().toISOString().slice(0, 10) const { data: { banners, newGames, upcomingGames, freeGames, sections } } = await apolloClient.query<GetHome, GetHomeVariables>({ query: GET_HOME, variables: { date:...
GabrielCastilhoV/won-games-client
src/pages/index.tsx
TypeScript
ArrowFunction
(props: HomeLayoutProps) => { return <HomeLayout {...props} /> }
GabrielCastilhoV/won-games-client
src/pages/index.tsx
TypeScript
ArrowFunction
() => import('~/app/home/home.module').then((m) => m.HomeModule)
Tyler-V/nativescript-checkme-o2
src/app/app-routing.module.ts
TypeScript
ArrowFunction
(m) => m.HomeModule
Tyler-V/nativescript-checkme-o2
src/app/app-routing.module.ts
TypeScript
ArrowFunction
() => import('~/app/home/peripheral/peripheral.module').then((m) => m.PeripheralModule)
Tyler-V/nativescript-checkme-o2
src/app/app-routing.module.ts
TypeScript
ArrowFunction
(m) => m.PeripheralModule
Tyler-V/nativescript-checkme-o2
src/app/app-routing.module.ts
TypeScript
ClassDeclaration
@NgModule({ imports: [NativeScriptRouterModule.forRoot(routes)], exports: [NativeScriptRouterModule], }) export class AppRoutingModule {}
Tyler-V/nativescript-checkme-o2
src/app/app-routing.module.ts
TypeScript
ClassDeclaration
class SpSideBarController implements ISpSideBarModel { public static $inject: string[] = []; constructor(){ } }
ramon-delvalle/sparky
src/app/modules/side-bar/side-bar.controller.ts
TypeScript
InterfaceDeclaration
export interface ISpSideBarModel { }
ramon-delvalle/sparky
src/app/modules/side-bar/side-bar.controller.ts
TypeScript
ArrowFunction
() => ( <div className="wdc-form"> <div className
davvidbaker/canvas-kit
modules/form-field/css/stories/stories_Radio.tsx
TypeScript
ArrowFunction
() => ( <div className="wdc-form wdc-form-label-position-left"> <div className
davvidbaker/canvas-kit
modules/form-field/css/stories/stories_Radio.tsx
TypeScript
ArrowFunction
() => ( <div className="wdc-form"> <fieldset className
davvidbaker/canvas-kit
modules/form-field/css/stories/stories_Radio.tsx
TypeScript
ArrowFunction
() => ( <div className="wdc-form wdc-form-label-position-left"> <fieldset className
davvidbaker/canvas-kit
modules/form-field/css/stories/stories_Radio.tsx
TypeScript
FunctionDeclaration
export function PublishQueue(name: string, options?: PublishQueueOptions): MethodDecorator;
nest-x/nestx-amqp
src/decorators/publish-queue.ts
TypeScript
FunctionDeclaration
export function PublishQueue(queue: Queue, options?: PublishQueueOptions): MethodDecorator;
nest-x/nestx-amqp
src/decorators/publish-queue.ts
TypeScript
FunctionDeclaration
export function PublishQueue(nameOrQueue: string | Queue, options?: PublishQueueOptions): MethodDecorator { const queue = createOrGetQueue(nameOrQueue); return (target, propertyKey, descriptor: PropertyDescriptor) => { const originalHandler = descriptor.value; descriptor.value = async (content, ...elseArg...
nest-x/nestx-amqp
src/decorators/publish-queue.ts
TypeScript
ArrowFunction
(target, propertyKey, descriptor: PropertyDescriptor) => { const originalHandler = descriptor.value; descriptor.value = async (content, ...elseArgs) => { const context = Reflect.getMetadata(PUBLISH_QUEUE_CONTEXT_METADATA_TOKEN, descriptor.value); const producer: QueueProducer = Reflect.getMetadata(...
nest-x/nestx-amqp
src/decorators/publish-queue.ts
TypeScript
ArrowFunction
async (content, ...elseArgs) => { const context = Reflect.getMetadata(PUBLISH_QUEUE_CONTEXT_METADATA_TOKEN, descriptor.value); const producer: QueueProducer = Reflect.getMetadata(PUBLISH_QUEUE_PRODUCER_METADATA_TOKEN, descriptor.value); if (producer) { await producer.send(content, options); ...
nest-x/nestx-amqp
src/decorators/publish-queue.ts
TypeScript
InterfaceDeclaration
/** * models * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: 2.9 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class ma...
allegroai/clearml-web
src/app/business-logic/model/models/model.ts
TypeScript
ArrowFunction
(address: string, provider?: providers.Provider | Signer) => { const [tokenRegistry, setTokenRegistry] = useState<TradeTrustERC721>(); useEffect(() => { if (!address || !provider) return; const instance = TradeTrustERC721Factory.connect(address, provider); setTokenRegistry(instance); }, [address, pr...
koriaf/tradetrust-website
src/common/hooks/useTokenRegistryContract.ts
TypeScript
ArrowFunction
() => { if (!address || !provider) return; const instance = TradeTrustERC721Factory.connect(address, provider); setTokenRegistry(instance); }
koriaf/tradetrust-website
src/common/hooks/useTokenRegistryContract.ts
TypeScript
ArrowFunction
() => { let component: RedirectComponent; let fixture: ComponentFixture<RedirectComponent>; const fakeActivatedRoute = { snapshot: { data: { telemetry: { env: 'redirect', pageid: 'learn-redirect', type: 'view', object: { type: '', ver: '1.0' } } ...
Abhishekkp-zool/SunbirdEd-portal
src/app/client/src/app/modules/shared/components/redirect/redirect.component.spec.ts
TypeScript
ArrowFunction
() => { TestBed.configureTestingModule({ declarations: [RedirectComponent], imports: [ RouterTestingModule, HttpClientTestingModule, Ng2IziToastModule, TelemetryModule.forRoot() ], providers: [ ResourceService, ConfigService, CacheService, ...
Abhishekkp-zool/SunbirdEd-portal
src/app/client/src/app/modules/shared/components/redirect/redirect.component.spec.ts
TypeScript
ArrowFunction
() => { fixture = TestBed.createComponent(RedirectComponent); component = fixture.componentInstance; }
Abhishekkp-zool/SunbirdEd-portal
src/app/client/src/app/modules/shared/components/redirect/redirect.component.spec.ts
TypeScript
ArrowFunction
(router, toasterService, resourceService, service) => { resourceService.messages = resourceBundle.messages; spyOn(toasterService, 'warning').and.callFake(() => 'warning'); spyOn(component, 'openWindow').and.callFake(() => 'open'); component.ngOnInit(); expect(toasterService.warning).toBeD...
Abhishekkp-zool/SunbirdEd-portal
src/app/client/src/app/modules/shared/components/redirect/redirect.component.spec.ts
TypeScript
ArrowFunction
() => 'warning'
Abhishekkp-zool/SunbirdEd-portal
src/app/client/src/app/modules/shared/components/redirect/redirect.component.spec.ts
TypeScript
ArrowFunction
() => 'open'
Abhishekkp-zool/SunbirdEd-portal
src/app/client/src/app/modules/shared/components/redirect/redirect.component.spec.ts
TypeScript
ClassDeclaration
class RouterStub { navigate = jasmine.createSpy('navigate'); }
Abhishekkp-zool/SunbirdEd-portal
src/app/client/src/app/modules/shared/components/redirect/redirect.component.spec.ts
TypeScript
ClassDeclaration
export default class JobCreateTemplate extends React.Component<Props, {}> { public render() { return ( <div className="row form-content"> <div className="col-md-11"> <div className="row initialize-instructions"> <div className="col-md-12"> <div className="jumbot...
cfreemoser/polyaxon
client/src/components/jobs/creationModes/template.tsx
TypeScript
InterfaceDeclaration
export interface Props { cancelUrl: string; isLoading: boolean; isProjectEntity: boolean; projects: ProjectModel[]; errors: any; onCreate: (job: JobModel, user?: string, projectName?: string) => jobsActions.JobAction; }
cfreemoser/polyaxon
client/src/components/jobs/creationModes/template.tsx
TypeScript
MethodDeclaration
public render() { return ( <div className="row form-content"> <div className="col-md-11"> <div className="row initialize-instructions"> <div className="col-md-12"> <div className="jumbotron jumbotron-action text-center empty-jumbotron"> <h3>No templ...
cfreemoser/polyaxon
client/src/components/jobs/creationModes/template.tsx
TypeScript
FunctionDeclaration
export default function CardProperty({ text, value, isActive = false, isNew = false, }: { text: string; value?: string; isActive?: boolean; isNew?: boolean; }) { const activeState = 'font-bold'; return ( <div className={`flex justify-between items-center relative pl-2 ${ isActive ...
porkopek/corona-info
src/components/card-property.tsx
TypeScript
FunctionDeclaration
export function sendToGoogleAnalytics({ name, delta, value, id, }: { name: string delta: number value: number id: string }) { ReactGA.send({ hitType: 'event', eventCategory: 'Web Vitals', eventAction: name, eventLabel: id, nonInteraction: true, value: Math.round(name === 'CLS'...
kalvin807/gbf-raid-finder
web/src/utils/web-vitals.ts
TypeScript
FunctionDeclaration
export function sendVitals() { try { getCLS(sendToGoogleAnalytics) getFID(sendToGoogleAnalytics) getLCP(sendToGoogleAnalytics) } catch (e) { return } }
kalvin807/gbf-raid-finder
web/src/utils/web-vitals.ts
TypeScript
FunctionDeclaration
function FooterLink({ to, href, label, prependBaseUrlToHref, ...props }: FooterLinkItem) { const toUrl = useBaseUrl(to); const normalizedHref = useBaseUrl(href, {forcePrependBaseUrl: true}); return ( <Link className="footer__link-item" {...(href ? { href: prependBas...
Circelpod/circlepod-doc
src/theme/Footer/index.tsx
TypeScript
FunctionDeclaration
function Footer(): JSX.Element | null { const {footer} = useThemeConfig(); const {copyright, links = [], logo = {}} = footer || {}; const sources = { light: useBaseUrl(logo.src), dark: useBaseUrl(logo.srcDark || logo.src), }; if (!footer) { return null; } return ( <footer classNa...
Circelpod/circlepod-doc
src/theme/Footer/index.tsx
TypeScript
ArrowFunction
({ sources, alt, }: Pick<ThemedImageProps, 'sources' | 'alt'>) => ( <ThemedImage className="footer__logo"
Circelpod/circlepod-doc
src/theme/Footer/index.tsx
TypeScript
ArrowFunction
(linkItem, i) => ( <div key={i}
Circelpod/circlepod-doc
src/theme/Footer/index.tsx
TypeScript
ArrowFunction
(item, key) => item.html ? ( <li key={key}
Circelpod/circlepod-doc
src/theme/Footer/index.tsx
TypeScript
MethodDeclaration
clsx('footer', { 'footer--dark': footer
Circelpod/circlepod-doc
src/theme/Footer/index.tsx
TypeScript
ClassDeclaration
//----------------------------------------------------------------------------- // Window_Status // // The window for displaying full status on the status screen. declare class Window_Status extends Window_Selectable { protected _actor:Game_Actor; public constructor(); public setActor(actor:Game_Actor):void; pub...
agent-bizzle/rmmv-typescript-definitions
ts_definitions/windows/Window_Status.d.ts
TypeScript
MethodDeclaration
public setActor(actor:Game_Actor):void;
agent-bizzle/rmmv-typescript-definitions
ts_definitions/windows/Window_Status.d.ts
TypeScript
MethodDeclaration
public drawBlock1(y:number):void;
agent-bizzle/rmmv-typescript-definitions
ts_definitions/windows/Window_Status.d.ts
TypeScript
MethodDeclaration
public drawBlock2(y:number):void;
agent-bizzle/rmmv-typescript-definitions
ts_definitions/windows/Window_Status.d.ts
TypeScript
MethodDeclaration
public drawBlock3(y:number):void;
agent-bizzle/rmmv-typescript-definitions
ts_definitions/windows/Window_Status.d.ts
TypeScript
MethodDeclaration
public drawBlock4(y:number):void;
agent-bizzle/rmmv-typescript-definitions
ts_definitions/windows/Window_Status.d.ts
TypeScript
MethodDeclaration
public drawHorzLine(y:number):void;
agent-bizzle/rmmv-typescript-definitions
ts_definitions/windows/Window_Status.d.ts
TypeScript
MethodDeclaration
public lineColor():string;
agent-bizzle/rmmv-typescript-definitions
ts_definitions/windows/Window_Status.d.ts
TypeScript
MethodDeclaration
public drawBasicInfo(x:number, y:number):void;
agent-bizzle/rmmv-typescript-definitions
ts_definitions/windows/Window_Status.d.ts
TypeScript
MethodDeclaration
public drawParameters(x:number, y:number):void;
agent-bizzle/rmmv-typescript-definitions
ts_definitions/windows/Window_Status.d.ts
TypeScript
MethodDeclaration
public drawExpInfo(x:number, y:number):void;
agent-bizzle/rmmv-typescript-definitions
ts_definitions/windows/Window_Status.d.ts
TypeScript
MethodDeclaration
public drawEquipments(x:number, y:number):void;
agent-bizzle/rmmv-typescript-definitions
ts_definitions/windows/Window_Status.d.ts
TypeScript
MethodDeclaration
public drawProfile(x:number, y:number):void;
agent-bizzle/rmmv-typescript-definitions
ts_definitions/windows/Window_Status.d.ts
TypeScript
MethodDeclaration
public maxEquipmentLines():number;
agent-bizzle/rmmv-typescript-definitions
ts_definitions/windows/Window_Status.d.ts
TypeScript
ArrowFunction
async (configService :ConfigService) =>({ secret : process.env.JWT_SECRET, signOptions : {expiresIn :'1m'} })
starlenj/sirket_siparis
order-app/user-microservice/src/auth/auth.module.ts
TypeScript
ClassDeclaration
@Module({ imports:[JwtModule.registerAsync({ imports :[ConfigModule], inject :[ConfigService], useFactory :async (configService :ConfigService) =>({ secret : process.env.JWT_SECRET, signOptions : {expiresIn :'1m'} }) }),TypeOrmModule.forFeature([User])], providers: [AuthService,UserS...
starlenj/sirket_siparis
order-app/user-microservice/src/auth/auth.module.ts
TypeScript
ArrowFunction
async (client: ClientType, testName: string) => { const page = await goToEditorTestingWDExample(client); const cardProviderPromise = Promise.resolve( new ConfluenceCardProvider('prod'), ); await mountEditor(page, { appearance: 'full-page', allowTextAlignment: true, defaultValu...
cozy/editor-core
src/__tests__/integration/card/embed-1.ts
TypeScript
TypeAliasDeclaration
type ClientType = Parameters<typeof goToEditorTestingWDExample>[0];
cozy/editor-core
src/__tests__/integration/card/embed-1.ts
TypeScript
ClassDeclaration
@Component({ selector: 'card', templateUrl: './cardComponent.html' }) export class CardComponent { @Input() myCard: Card @Input() isOdd: boolean; @Input() isFiestOne: string; @Output() onCardSelected: EventEmitter<Card>; private currentCard: Card; constructor() { this.onCardSelected = new EventEm...
uiok/angularGame
src/app/shared/card/cardController.ts
TypeScript
MethodDeclaration
clicked(selectedCard: Card): void { this.currentCard = selectedCard; this.onCardSelected.emit(selectedCard); }
uiok/angularGame
src/app/shared/card/cardController.ts
TypeScript
ArrowFunction
() => { let page: AppPage; beforeEach(() => { page = new AppPage(); }); it('should display welcome message', () => { page.navigateTo(); expect(page.getParagraphText()).toEqual('Welcome to ff-resize-sensor-app!'); }); }
frontendfreelancerdk/ff-resize-sensor
e2e/src/app.e2e-spec.ts
TypeScript
ArrowFunction
() => { page.navigateTo(); expect(page.getParagraphText()).toEqual('Welcome to ff-resize-sensor-app!'); }
frontendfreelancerdk/ff-resize-sensor
e2e/src/app.e2e-spec.ts
TypeScript
FunctionDeclaration
export function deprecate<T>(validator: Validator<T>, message: string): Validator<T>;
0xProject/DefinitelyTyped
types/react-is-deprecated/index.d.ts
TypeScript
FunctionDeclaration
export function addIsDeprecated(propTypes: ReactPropTypes): DeprecatablePropTypes;
0xProject/DefinitelyTyped
types/react-is-deprecated/index.d.ts
TypeScript
InterfaceDeclaration
interface Deprecatable<T> { isDeprecated: (message: string) => Validator<T>; }
0xProject/DefinitelyTyped
types/react-is-deprecated/index.d.ts
TypeScript
InterfaceDeclaration
// Unfortunately this copy-paste must happen -- I can't just take PropTypes and programmatically // define a version that intersects in the Deprecatable interface into the keys. interface DeprecatablePropTypes { any: Requireable<any> & Deprecatable<any>; array: Requireable<any> & Deprecatable<any>; bool: Re...
0xProject/DefinitelyTyped
types/react-is-deprecated/index.d.ts
TypeScript
FunctionDeclaration
function useLogin() { const [loginInfo, setLoginInfo] = React.useState(createEmptyLogin()); return { loginInfo, setLoginInfo }; }
Lemoncode/react-from-classes-to-hooks-typescript
00_login/01_migrated/src/pages/login/loginPage.tsx
TypeScript
FunctionDeclaration
function useErrorHandling() { const [showLoginFailedMessage, setShowLoginFailedMessage] = React.useState( false ); const [loginFormErrors, setLoginFormErrors] = React.useState( createDefaultLoginFormErrors() ); return { showLoginFailedMessage, setShowLoginFailedMessage, loginFormErrors, ...
Lemoncode/react-from-classes-to-hooks-typescript
00_login/01_migrated/src/pages/login/loginPage.tsx
TypeScript
ArrowFunction
theme => createStyles({ card: { maxWidth: 400, margin: "0 auto" } })
Lemoncode/react-from-classes-to-hooks-typescript
00_login/01_migrated/src/pages/login/loginPage.tsx
TypeScript
ArrowFunction
(props: Props) => { const { loginInfo, setLoginInfo } = useLogin(); const { showLoginFailedMessage, setShowLoginFailedMessage, loginFormErrors, setLoginFormErrors } = useErrorHandling(); const loginContext = React.useContext(SessionContext); const onLogin = () => { loginFormValidation....
Lemoncode/react-from-classes-to-hooks-typescript
00_login/01_migrated/src/pages/login/loginPage.tsx
TypeScript
ArrowFunction
() => { loginFormValidation.validateForm(loginInfo).then(formValidationResult => { if (formValidationResult.succeeded) { if (isValidLogin(loginInfo)) { loginContext.updateLogin(loginInfo.login); props.history.push("/pageB"); } else { setShowLoginFailedMessage(tru...
Lemoncode/react-from-classes-to-hooks-typescript
00_login/01_migrated/src/pages/login/loginPage.tsx
TypeScript
ArrowFunction
formValidationResult => { if (formValidationResult.succeeded) { if (isValidLogin(loginInfo)) { loginContext.updateLogin(loginInfo.login); props.history.push("/pageB"); } else { setShowLoginFailedMessage(true); } } else { alert("error, review the...
Lemoncode/react-from-classes-to-hooks-typescript
00_login/01_migrated/src/pages/login/loginPage.tsx
TypeScript
ArrowFunction
(name: string, value) => { setLoginInfo({ ...loginInfo, [name]: value }); loginFormValidation .validateField(loginInfo, name, value) .then(fieldValidationResult => { setLoginFormErrors({ ...loginFormErrors, [name]: fieldValidationResult }); ...
Lemoncode/react-from-classes-to-hooks-typescript
00_login/01_migrated/src/pages/login/loginPage.tsx
TypeScript
ArrowFunction
fieldValidationResult => { setLoginFormErrors({ ...loginFormErrors, [name]: fieldValidationResult }); }
Lemoncode/react-from-classes-to-hooks-typescript
00_login/01_migrated/src/pages/login/loginPage.tsx
TypeScript
InterfaceDeclaration
interface Props extends RouteComponentProps, WithStyles<typeof styles> {}
Lemoncode/react-from-classes-to-hooks-typescript
00_login/01_migrated/src/pages/login/loginPage.tsx
TypeScript
InterfaceDeclaration
export interface Faces { topFaces: FaceData[]; bottomFaces: FaceData[]; leftFaces: FaceData[]; rightFaces: FaceData[]; backFaces: FaceData[]; frontFaces: FaceData[]; }
bencoveney/webgl-voxel
models/voxel/faces.ts
TypeScript
EnumDeclaration
export const enum FaceLookup { x = 0, y = 1, z = 2, width = 3, height = 4, r = 5, g = 6, b = 7 }
bencoveney/webgl-voxel
models/voxel/faces.ts
TypeScript
TypeAliasDeclaration
export type FaceData = LookupData<FaceLookup>;
bencoveney/webgl-voxel
models/voxel/faces.ts
TypeScript
ClassDeclaration
export class MarkerService { markInstance: Mark | undefined = undefined; previousTerm: string = ''; constructor() { } clearAll() { this.unmark(); } mark(term?: string) { if(this.markInstance){ this.markInstance.unmark(); } this.markInstance = new Mark(document.querySelector("....
textmagic/redoc
src/services/MarkerService.ts
TypeScript
MethodDeclaration
clearAll() { this.unmark(); }
textmagic/redoc
src/services/MarkerService.ts
TypeScript
MethodDeclaration
mark(term?: string) { if(this.markInstance){ this.markInstance.unmark(); } this.markInstance = new Mark(document.querySelector(".api-content") as HTMLElement); this.markInstance.mark(term || this.previousTerm); if(term){ this.previousTerm = term; } }
textmagic/redoc
src/services/MarkerService.ts
TypeScript
MethodDeclaration
unmark() { this.previousTerm = ''; if(this.markInstance){ this.markInstance.unmark(); } }
textmagic/redoc
src/services/MarkerService.ts
TypeScript
ClassDeclaration
@Schema() export class User { @Prop({ required: true }) fullname: string; @Prop({ required: true, unique: true, lowercase: true }) email: string; @Prop({ required: true }) password: string; @Prop({ default: Date.now() }) createdAt: Date; }
muthaiyanmani/video-backend
src/model/user.schema.ts
TypeScript
TypeAliasDeclaration
export type UserDocument = User & Document;
muthaiyanmani/video-backend
src/model/user.schema.ts
TypeScript
ClassDeclaration
export class JsonSerializerSettings { public Binder: SerializationBinder ; public CheckAdditionalContent: boolean ; public ConstructorHandling: ConstructorHandling ; public Context: any ; public ContractResolver: any ; public Converters: JsonConverter[] = []; public Culture: any ; public DateFormatHandling: D...
marbletravis/DotNetCoreBase
zaAbXTwb.Client/ClientApp/src/app/models/generated/JsonSerializerSettings.ts
TypeScript
ArrowFunction
() => { const teamMemberForm = shallow( <TeamMemberForm createTeamMember={({}) => {}}
humanoidsbv/team-awesome-dylan
src/components/team-member-form/__tests__/TeamMemberForm.test.tsx
TypeScript
ArrowFunction
({ message }) => { console.log('DetailsConversationComponent::onAddConversationMessage', message); this.conversation.messages.push(message); }
zetapush/angular-zetapush-starter
src/app/conversation/details-conversation/details-conversation.component.ts
TypeScript
ArrowFunction
() => { console.log('DetailsConversationComponent::onPurgeConversationMessageList'); this.conversation.messages.length = 0; }
zetapush/angular-zetapush-starter
src/app/conversation/details-conversation/details-conversation.component.ts
TypeScript
ArrowFunction
(subscription) => { subscription.unsubscribe(); }
zetapush/angular-zetapush-starter
src/app/conversation/details-conversation/details-conversation.component.ts
TypeScript