type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
ClassDeclaration
@Component({ moduleId: module.id, selector: 'ripple-demo', templateUrl: 'ripple-demo.html', styleUrls: ['ripple-demo.scss'], }) export class RippleDemoComponent { @ViewChild(MatRipple, {static: true}) ripple: MatRipple; centered = false; disabled = false; unbounded = false; rounded = false; radius...
liuy97/material-seed
src/app/material-demo/ripple/ripple-demo.ts
TypeScript
MethodDeclaration
launchRipple(persistent = false) { if (this.ripple) { //this.ripple.launch(0, 0, { centered: true, persistent }); } }
liuy97/material-seed
src/app/material-demo/ripple/ripple-demo.ts
TypeScript
MethodDeclaration
fadeOutAll() { if (this.ripple) { //this.ripple.fadeOutAll(); } }
liuy97/material-seed
src/app/material-demo/ripple/ripple-demo.ts
TypeScript
ArrowFunction
() => { assert.step('foo-bar owner called'); }
KrishnaRPatel/glimmer-vm
packages/@glimmer/integration-tests/test/owner-test.ts
TypeScript
ArrowFunction
() => { assert.step('foo-baz owner called'); }
KrishnaRPatel/glimmer-vm
packages/@glimmer/integration-tests/test/owner-test.ts
TypeScript
ClassDeclaration
class OwnerJitRuntimeResolver extends TestJitRuntimeResolver { lookupComponent(name: string, owner: () => void): ComponentDefinition | null { if (typeof owner === 'function') owner(); return super.lookupComponent(name, owner); } lookupCompileTimeComponent(name: string, owner: () => void): CompileTimeCo...
KrishnaRPatel/glimmer-vm
packages/@glimmer/integration-tests/test/owner-test.ts
TypeScript
ClassDeclaration
class OwnerJitRenderDelegate extends JitRenderDelegate { protected resolver = new OwnerJitRuntimeResolver(this.registry); }
KrishnaRPatel/glimmer-vm
packages/@glimmer/integration-tests/test/owner-test.ts
TypeScript
ClassDeclaration
class OwnerTest extends RenderTest { static suiteName = '[owner]'; declare delegate: OwnerJitRenderDelegate; @test 'owner can be used per-template in compile time resolver'(assert: Assert) { class FooBar extends EmberishCurlyComponent { layout = createTemplate('<FooBaz/>')(() => { assert.st...
KrishnaRPatel/glimmer-vm
packages/@glimmer/integration-tests/test/owner-test.ts
TypeScript
ClassDeclaration
class FooBar extends EmberishCurlyComponent { layout = createTemplate('<FooBaz/>')(() => { assert.step('foo-bar owner called'); }); }
KrishnaRPatel/glimmer-vm
packages/@glimmer/integration-tests/test/owner-test.ts
TypeScript
ClassDeclaration
class FooBaz extends EmberishCurlyComponent { layout = createTemplate('<FooQux/>')(() => { assert.step('foo-baz owner called'); }); }
KrishnaRPatel/glimmer-vm
packages/@glimmer/integration-tests/test/owner-test.ts
TypeScript
ClassDeclaration
class FooBar extends EmberishCurlyComponent { subcomponent = 'foo-baz'; layout = createTemplate('{{component this.subcomponent}}')(() => { assert.step('foo-bar owner called'); }); }
KrishnaRPatel/glimmer-vm
packages/@glimmer/integration-tests/test/owner-test.ts
TypeScript
ClassDeclaration
class FooBaz extends EmberishCurlyComponent { subcomponent = 'foo-qux'; layout = createTemplate('{{component this.subcomponent}}')(() => { assert.step('foo-baz owner called'); }); }
KrishnaRPatel/glimmer-vm
packages/@glimmer/integration-tests/test/owner-test.ts
TypeScript
MethodDeclaration
lookupComponent(name: string, owner: () => void): ComponentDefinition | null { if (typeof owner === 'function') owner(); return super.lookupComponent(name, owner); }
KrishnaRPatel/glimmer-vm
packages/@glimmer/integration-tests/test/owner-test.ts
TypeScript
MethodDeclaration
lookupCompileTimeComponent(name: string, owner: () => void): CompileTimeComponent | null { if (typeof owner === 'function') owner(); return super.lookupCompileTimeComponent(name, owner); }
KrishnaRPatel/glimmer-vm
packages/@glimmer/integration-tests/test/owner-test.ts
TypeScript
MethodDeclaration
@test 'owner can be used per-template in compile time resolver'(assert: Assert) { class FooBar extends EmberishCurlyComponent { layout = createTemplate('<FooBaz/>')(() => { assert.step('foo-bar owner called'); }); } class FooBaz extends EmberishCurlyComponent { layout = createT...
KrishnaRPatel/glimmer-vm
packages/@glimmer/integration-tests/test/owner-test.ts
TypeScript
MethodDeclaration
@test 'owner can be used per-template in runtime resolver'(assert: Assert) { class FooBar extends EmberishCurlyComponent { subcomponent = 'foo-baz'; layout = createTemplate('{{component this.subcomponent}}')(() => { assert.step('foo-bar owner called'); }); } class FooBaz exten...
KrishnaRPatel/glimmer-vm
packages/@glimmer/integration-tests/test/owner-test.ts
TypeScript
ClassDeclaration
/** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/vpc_ipam_pool_cidr_allocation aws_vpc_ipam_pool_cidr_allocation} */ export class VpcIpamPoolCidrAllocation extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceTy...
hashicorp/cdktf-provider-aws
src/vpc/vpc-ipam-pool-cidr-allocation.ts
TypeScript
InterfaceDeclaration
/** * AWS VPC */ export interface VpcIpamPoolCidrAllocationConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/vpc_ipam_pool_cidr_allocation#cidr VpcIpamPoolCidrAllocation#cidr} */ readonly cidr?: string; /** * Docs at Terrafor...
hashicorp/cdktf-provider-aws
src/vpc/vpc-ipam-pool-cidr-allocation.ts
TypeScript
MethodDeclaration
public resetCidr() { this._cidr = undefined; }
hashicorp/cdktf-provider-aws
src/vpc/vpc-ipam-pool-cidr-allocation.ts
TypeScript
MethodDeclaration
public resetDescription() { this._description = undefined; }
hashicorp/cdktf-provider-aws
src/vpc/vpc-ipam-pool-cidr-allocation.ts
TypeScript
MethodDeclaration
public resetDisallowedCidrs() { this._disallowedCidrs = undefined; }
hashicorp/cdktf-provider-aws
src/vpc/vpc-ipam-pool-cidr-allocation.ts
TypeScript
MethodDeclaration
public resetNetmaskLength() { this._netmaskLength = undefined; }
hashicorp/cdktf-provider-aws
src/vpc/vpc-ipam-pool-cidr-allocation.ts
TypeScript
MethodDeclaration
// ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { cidr: cdktf.stringToTerraform(this._cidr), description: cdktf.stringToTerraform(this._description), disallowed_cidrs: cdktf.listMapper(cdktf.stringToTerraform)(this._disallowedCidrs), ...
hashicorp/cdktf-provider-aws
src/vpc/vpc-ipam-pool-cidr-allocation.ts
TypeScript
ArrowFunction
(n) => `${n}`
polygonjs/polygonjs
src/engine/scene/utils/events/WindowEventsController.ts
TypeScript
ClassDeclaration
export class WindowEventsController extends BaseSceneEventsController<Event, PointerEventNode> { protected _require_canvas_event_listeners: boolean = true; type() { return 'window'; } acceptedEventTypes() { return ACCEPTED_WINDOW_EVENT_TYPES.map((n) => `${n}`); } }
polygonjs/polygonjs
src/engine/scene/utils/events/WindowEventsController.ts
TypeScript
EnumDeclaration
// https://developer.mozilla.org/en-US/docs/Web/Events enum WindowEventType { resize = 'resize', }
polygonjs/polygonjs
src/engine/scene/utils/events/WindowEventsController.ts
TypeScript
MethodDeclaration
type() { return 'window'; }
polygonjs/polygonjs
src/engine/scene/utils/events/WindowEventsController.ts
TypeScript
MethodDeclaration
acceptedEventTypes() { return ACCEPTED_WINDOW_EVENT_TYPES.map((n) => `${n}`); }
polygonjs/polygonjs
src/engine/scene/utils/events/WindowEventsController.ts
TypeScript
FunctionDeclaration
//装饰器 //类装饰器 //普通装饰器 /* function logClazz(params: any) { console.log(params); //params 就是当前类 params.prototype.apiUrl = "https://sogrey.top" } @logClazz class HttpClient { constructor() { } getData() { } } */ /* 输出了: ƒ HttpClient() { } */ /* var http = new HttpClient(); console.log(...
Sogrey/TypeScript-start
examples/09-Decorator/09-Decorator.ts
TypeScript
FunctionDeclaration
function logClazz2(params: any) { return function (target: any) { console.log("类装饰器2"); } }
Sogrey/TypeScript-start
examples/09-Decorator/09-Decorator.ts
TypeScript
FunctionDeclaration
//属性装饰器 function logAttr(params?: string) { return function (target: any, attrName: any) { console.log("属性装饰器"); } }
Sogrey/TypeScript-start
examples/09-Decorator/09-Decorator.ts
TypeScript
FunctionDeclaration
//方法装饰器 function logMethod(params?: string) { return function (target: any, methodName: any, desc: any) { console.log("方法装饰器"); } }
Sogrey/TypeScript-start
examples/09-Decorator/09-Decorator.ts
TypeScript
FunctionDeclaration
//参数装饰器 function logParams1(params?: string) { return function (target: any, methodName: any, desc: any) { console.log("参数装饰器1"); } }
Sogrey/TypeScript-start
examples/09-Decorator/09-Decorator.ts
TypeScript
FunctionDeclaration
function logParams2(params?: string) { return function (target: any, methodName: any, desc: any) { console.log("参数装饰器2"); } }
Sogrey/TypeScript-start
examples/09-Decorator/09-Decorator.ts
TypeScript
ClassDeclaration
@logClazz1('类装饰器') @logClazz2('类装饰器') class HttpClient { @logAttr() url: string | undefined; constructor() { } @logMethod() getData() { console.log("getData"); } setData(@logParams1() attr1:any,@logParams2() attr2:any){ } }
Sogrey/TypeScript-start
examples/09-Decorator/09-Decorator.ts
TypeScript
MethodDeclaration
@logMethod() getData() { console.log("getData"); }
Sogrey/TypeScript-start
examples/09-Decorator/09-Decorator.ts
TypeScript
MethodDeclaration
setData(@logParams1() attr1:any,@logParams2() attr2:any){ }
Sogrey/TypeScript-start
examples/09-Decorator/09-Decorator.ts
TypeScript
ClassDeclaration
export default class MdExplore extends React.Component<IconBaseProps> { }
0916dhkim/DefinitelyTyped
types/react-icons/md/explore.d.ts
TypeScript
ArrowFunction
(förval: systemets språk)
nixoncoin/nixoncoin
src/qt/locale/bitcoin_sv.ts
TypeScript
ArrowFunction
(standard: 7765 eller testnät: 17765)
nixoncoin/nixoncoin
src/qt/locale/bitcoin_sv.ts
TypeScript
ArrowFunction
(standard: 7766 eller testnät: 17766)
nixoncoin/nixoncoin
src/qt/locale/bitcoin_sv.ts
TypeScript
ArrowFunction
props => { const { value, format, autoOk, openTo, minDate, maxDate, initialFocusedDate, showTabs, autoSubmit, disablePast, disableFuture, leftArrowIcon, rightArrowIcon, dateRangeIcon, timeIcon, renderDay, ampm, shouldDisableDate, animateYear...
jetbridge/material-ui-pickers
src/DateTimePicker/DateTimePickerInline.tsx
TypeScript
ArrowFunction
(props: DateTimePickerInlineProps, ref) => ( <DateTimePickerInline {...props}
jetbridge/material-ui-pickers
src/DateTimePicker/DateTimePickerInline.tsx
TypeScript
InterfaceDeclaration
export interface DateTimePickerInlineProps extends BasePickerProps, BaseDateTimePickerProps, Omit<OuterInlineWrapperProps, 'onChange' | 'value'> {}
jetbridge/material-ui-pickers
src/DateTimePicker/DateTimePickerInline.tsx
TypeScript
MethodDeclaration
pick12hOr24hFormat( utils
jetbridge/material-ui-pickers
src/DateTimePicker/DateTimePickerInline.tsx
TypeScript
ClassDeclaration
@Component({ selector: 'app-visit-history', templateUrl: './visit-history.page.html', styleUrls: ['./visit-history.page.scss'], }) export class VisitHistoryPage implements OnInit { constructor() { } ngOnInit() { } }
pratiklokhande/quarantine
quarantine/src/app/pages/visit-history/visit-history.page.ts
TypeScript
ClassDeclaration
export class WarpManager<M extends Model = Model> extends ModelManager<M> { constructor(client: WarpClient) { super(); Object.defineProperty(this, "client", { value: client, enumerable: true, configurable: true, }); } readonly client!: WarpClient; override readonly modelManagerO...
asad-awadia/swim
swim-toolkit-js/swim-ui-js/@swim/model/main/warp/WarpManager.ts
TypeScript
MethodDeclaration
@Lazy static global<M extends Model>(): WarpManager<M> { return new WarpManager(client); }
asad-awadia/swim
swim-toolkit-js/swim-ui-js/@swim/model/main/warp/WarpManager.ts
TypeScript
ClassDeclaration
export class MultipleCurrentsError { currentResidency: Residency; conflictPeriod: Period; constructor(currentResidency: Residency, conflictPeriod: Period) { this.currentResidency = currentResidency; this.conflictPeriod = conflictPeriod; } }
anarkafkas/tripstack
data-types/Residency.ts
TypeScript
ClassDeclaration
export class ConflictInPeriodsError { conflictResidency: Residency; conflictPeriod: Period; constructor(conflictResidency: Residency, conflictPeriod: Period) { this.conflictResidency = conflictResidency; this.conflictPeriod = conflictPeriod; } }
anarkafkas/tripstack
data-types/Residency.ts
TypeScript
ClassDeclaration
export default class Residency { private id: string; private city: City; private fromDate: ShortDate; private toDate: ShortDate | null; static findResidencyDuring( residencies: Residency[], period: Period ): Residency | null { return Residency.findResidencyDuringWithBinarySearch( residen...
anarkafkas/tripstack
data-types/Residency.ts
TypeScript
InterfaceDeclaration
export interface ResidencyCandidate { id?: string; city: City; fromDate: ShortDate; toDate: ShortDate | null; }
anarkafkas/tripstack
data-types/Residency.ts
TypeScript
MethodDeclaration
static findResidencyDuring( residencies: Residency[], period: Period ): Residency | null { return Residency.findResidencyDuringWithBinarySearch( residencies, 0, residencies.length - 1, period ); }
anarkafkas/tripstack
data-types/Residency.ts
TypeScript
MethodDeclaration
private static findResidencyDuringWithBinarySearch( residencies: Residency[], lo: number, hi: number, period: Period ): Residency | null { if (hi < lo) return null; const mi = lo + Math.floor((hi - lo) / 2); const mid = residencies[mi]; if (mid.containsPeriod(period)) { return ...
anarkafkas/tripstack
data-types/Residency.ts
TypeScript
MethodDeclaration
static findResidencyAt( residencies: Residency[], date: ShortDate ): Residency | null { return Residency.findResidencyWithBinarySearch( residencies, 0, residencies.length - 1, date ); }
anarkafkas/tripstack
data-types/Residency.ts
TypeScript
MethodDeclaration
private static findResidencyWithBinarySearch( residencies: Residency[], lo: number, hi: number, date: ShortDate ): Residency | null { if (hi < lo) return null; const mi = lo + Math.floor((hi - lo) / 2); const mid = residencies[mi]; if (mid.containsDate(date)) { return mid; ...
anarkafkas/tripstack
data-types/Residency.ts
TypeScript
MethodDeclaration
/** * Determines whether the properties of the new residency candidate is consistent * with the existing Residency objects. * @param existingResidencies Must be sorted. * @throws `MultipleCurrentsError` * @throws `ConflictInPeriodsError` */ static validateConsistency( residencies: Residency[], ...
anarkafkas/tripstack
data-types/Residency.ts
TypeScript
MethodDeclaration
private static validateWithBinarySearch( residencies: Residency[], lo: number, hi: number, candidate: Residency ): void { if (hi < lo) return; const mi = lo + Math.floor((hi - lo) / 2); const mid = residencies[mi]; if (mid.getID() !== candidate.getID()) { const conflictPeriod = ...
anarkafkas/tripstack
data-types/Residency.ts
TypeScript
MethodDeclaration
static comparator(rsd1: Residency, rsd2: Residency) { return rsd1.getFromDate().compareTo(rsd2.getFromDate()); }
anarkafkas/tripstack
data-types/Residency.ts
TypeScript
MethodDeclaration
static createWithRawParams( id: string, cityCode: string, fromDateString: string, toDateString: string | null ) { const city = new City(cityCode); const fromDate = ShortDate.createWithYMDString(fromDateString); const toDate = toDateString ? ShortDate.createWithYMDString(toDateString...
anarkafkas/tripstack
data-types/Residency.ts
TypeScript
MethodDeclaration
conflictsWith(that: Residency) { return this.getConflictPeriodWith(that) !== null; }
anarkafkas/tripstack
data-types/Residency.ts
TypeScript
MethodDeclaration
/** @returns null if there is no conflict, the period of conflict otherwise */ getConflictPeriodWith(that: Residency): Period | null { if (this.isOngoing() && that.isOngoing()) { const later = ShortDate.max(this.getFromDate(), that.getFromDate()); return new Period(later, ShortDate.createCurrent()); ...
anarkafkas/tripstack
data-types/Residency.ts
TypeScript
MethodDeclaration
getID(): string { return this.id; }
anarkafkas/tripstack
data-types/Residency.ts
TypeScript
MethodDeclaration
getFromDate(): ShortDate { return this.fromDate; }
anarkafkas/tripstack
data-types/Residency.ts
TypeScript
MethodDeclaration
getToDate(): ShortDate | null { return this.toDate; }
anarkafkas/tripstack
data-types/Residency.ts
TypeScript
MethodDeclaration
getPeriod(): Period { return new Period(this.fromDate, this.currentToDate()); }
anarkafkas/tripstack
data-types/Residency.ts
TypeScript
MethodDeclaration
getDuration(): number { return this.currentToDate().diff(this.fromDate); }
anarkafkas/tripstack
data-types/Residency.ts
TypeScript
MethodDeclaration
containsDate(date: ShortDate): boolean { return this.getPeriod().contains(date); }
anarkafkas/tripstack
data-types/Residency.ts
TypeScript
MethodDeclaration
containsPeriod(thatPeriod: Period): boolean { return this.getPeriod().containsPeriod(thatPeriod); }
anarkafkas/tripstack
data-types/Residency.ts
TypeScript
MethodDeclaration
private currentToDate(): ShortDate { return this.isOngoing() ? ShortDate.createCurrent() : this.toDate; }
anarkafkas/tripstack
data-types/Residency.ts
TypeScript
MethodDeclaration
isOngoing(): boolean { return this.toDate === null; }
anarkafkas/tripstack
data-types/Residency.ts
TypeScript
MethodDeclaration
getCity(): City { return this.city; }
anarkafkas/tripstack
data-types/Residency.ts
TypeScript
MethodDeclaration
describePeriod(): string { const from = this.fromDate.asShortMonthAndYear(); const to = this.toDate === null ? 'Current' : this.toDate.asShortMonthAndYear(); return `${from} - ${to}`; }
anarkafkas/tripstack
data-types/Residency.ts
TypeScript
MethodDeclaration
equals(that: Residency): boolean { let toDatesAreEqual = false; toDatesAreEqual = this.toDate === null ? that.toDate === null : this.toDate.equals(that.toDate); return ( this.id === that.id && this.city.equals(that.city) && this.fromDate.equals(that.fromDate) && ...
anarkafkas/tripstack
data-types/Residency.ts
TypeScript
ArrowFunction
(searchTerm: string, handleSubmit: Function) => { const [value, setValue] = useState<string>(searchTerm); const handleChange = (event: any): void => { setValue(event.target.value); } const handleKeyDown = (event: KeyboardEvent): void => { if(event.code !== ENTER_CODE || !value) { return; } ...
Kiep13/BookFund-v.2
apps/webapp/src/app/pages/base/Search/components/SearchInput/useSearchInput.ts
TypeScript
ArrowFunction
(event: any): void => { setValue(event.target.value); }
Kiep13/BookFund-v.2
apps/webapp/src/app/pages/base/Search/components/SearchInput/useSearchInput.ts
TypeScript
ArrowFunction
(event: KeyboardEvent): void => { if(event.code !== ENTER_CODE || !value) { return; } handleSubmit(value); }
Kiep13/BookFund-v.2
apps/webapp/src/app/pages/base/Search/components/SearchInput/useSearchInput.ts
TypeScript
ArrowFunction
(): void => { if(!value) { return; } handleSubmit(value); }
Kiep13/BookFund-v.2
apps/webapp/src/app/pages/base/Search/components/SearchInput/useSearchInput.ts
TypeScript
ArrowFunction
({ device, closeModal }) => ( <Modal shouldShow> <ModalWrapper> <MainTitle>Install
steve-noel/ReactiveTraderCloud
src/client/src/apps/MainRoute/components/app-header/PWAInstallPrompt/PWAInstallModal.tsx
TypeScript
InterfaceDeclaration
interface InstallModalProps { device: MobileDevice | null closeModal: () => void }
steve-noel/ReactiveTraderCloud
src/client/src/apps/MainRoute/components/app-header/PWAInstallPrompt/PWAInstallModal.tsx
TypeScript
FunctionDeclaration
export function Content( { selectedGenreId, selectedGenre }: ContentProps ) { const [movies, setMovies] = useState<MovieProps[]>([]); useEffect(() => { api.get<MovieProps[]>(`movies/?Genre_id=${selectedGenreId}`).then(response => { setMovies(response.data); }); }, [selectedGenreId]); return( ...
ThallesLana/desafio-reactjs-02
src/components/Content.tsx
TypeScript
InterfaceDeclaration
interface ContentProps { selectedGenreId: number; selectedGenre: GenreResponseProps; }
ThallesLana/desafio-reactjs-02
src/components/Content.tsx
TypeScript
InterfaceDeclaration
export interface GluegunPatching { /** * Checks if a string or pattern exists in a file. */ exists(filename: string, findPattern: string | RegExp): Promise<boolean>; /** * Updates a file. */ update(filename: string, callback: (contents: any) => any): Promise<string | object | boolea...
AndonMitev/SubGraph
node_modules/gluegun/build/types/toolbox/patching-types.d.ts
TypeScript
InterfaceDeclaration
export interface GluegunPatchingPatchOptions { insert?: string; before?: string | RegExp; after?: string | RegExp; replace?: string | RegExp; delete?: string | RegExp; force?: boolean; }
AndonMitev/SubGraph
node_modules/gluegun/build/types/toolbox/patching-types.d.ts
TypeScript
FunctionDeclaration
export function LoginBox() { const { signInUrl } = useContext(AuthContext); return ( <div className={styles.loginBoxWrapper}> <strong>Entre e compartile sua mensagem</strong> <a href={signInUrl} className={styles.signInWithGithub}> <VscGithubInverted size="24" /> Entrar com Github ...
VitorFirmino/NLW-7
web/src/components/LoginBox/index.tsx
TypeScript
ArrowFunction
() => { logger.info(`Server Running on ${port}`); }
jun-jungin-web-study/DiarySNS-Server
src/app.ts
TypeScript
ArrowFunction
(req, res) => res.status(200).send("Hello")
jun-jungin-web-study/DiarySNS-Server
src/app.ts
TypeScript
ArrowFunction
controller => { this.app.use(controller.url, controller.router); }
jun-jungin-web-study/DiarySNS-Server
src/app.ts
TypeScript
ArrowFunction
(err: Error, req: Request, res: Response, next: NextFunction) => { res.status(442).json({ error: { message: err } }); }
jun-jungin-web-study/DiarySNS-Server
src/app.ts
TypeScript
ArrowFunction
middleware => this.app.use(middleware)
jun-jungin-web-study/DiarySNS-Server
src/app.ts
TypeScript
ClassDeclaration
class App { public app: express.Application; constructor(controllers: baseController[], middlewares: any[]) { const app = express(); this.app = app; this.registerMiddlewares(middlewares); this.registerControllers(controllers); } public listen(port: number): Server { return this.app.list...
jun-jungin-web-study/DiarySNS-Server
src/app.ts
TypeScript
MethodDeclaration
public listen(port: number): Server { return this.app.listen(port, () => { logger.info(`Server Running on ${port}`); }); }
jun-jungin-web-study/DiarySNS-Server
src/app.ts
TypeScript
MethodDeclaration
private registerControllers(controllers: baseController[]): void { this.app.get("/", (req, res) => res.status(200).send("Hello")); controllers.forEach(controller => { this.app.use(controller.url, controller.router); }); this.app.use((err: Error, req: Request, res: Response, next: NextFunction) ...
jun-jungin-web-study/DiarySNS-Server
src/app.ts
TypeScript
MethodDeclaration
private registerMiddlewares(middlewares: any[]): void { middlewares.forEach(middleware => this.app.use(middleware)); }
jun-jungin-web-study/DiarySNS-Server
src/app.ts
TypeScript
ClassDeclaration
@Module({ imports: [], providers: [ViewService], controllers: [ViewController], }) export class ViewModule implements NestModule { configure(userContext: MiddlewareConsumer): void { userContext.apply(NextMiddleware) // .forRoutes({path: 'bar', method: RequestMethod.PUT}) } }
Ajoe88/ajoe
server/src/view/view.module.ts
TypeScript
MethodDeclaration
configure(userContext: MiddlewareConsumer): void { userContext.apply(NextMiddleware) // .forRoutes({path: 'bar', method: RequestMethod.PUT}) }
Ajoe88/ajoe
server/src/view/view.module.ts
TypeScript
ClassDeclaration
/** * A stream marker, also containing some video data. */ export declare class HelixStreamMarkerWithVideo extends HelixStreamMarker { private readonly _videoId; /** @private */ readonly [rawDataSymbol]: HelixStreamMarkerVideoData; /** @private */ constructor(data: HelixStreamMarkerVideoData, _videoId...
samerbam/twitch-timestamper
node_modules/@twurple/api/lib/api/helix/stream/HelixStreamMarkerWithVideo.d.ts
TypeScript
InterfaceDeclaration
/** @private */ export interface HelixStreamMarkerVideoData extends HelixStreamMarkerData { URL: string; }
samerbam/twitch-timestamper
node_modules/@twurple/api/lib/api/helix/stream/HelixStreamMarkerWithVideo.d.ts
TypeScript
MethodDeclaration
/** * Retrieves the video data of the video the marker was set in. */ getVideo(): Promise<HelixVideo>;
samerbam/twitch-timestamper
node_modules/@twurple/api/lib/api/helix/stream/HelixStreamMarkerWithVideo.d.ts
TypeScript
ArrowFunction
authData=>{ this.loading.dismiss().then(()=>{ this.navCtrl.setRoot(HomePage); }); }
fkurtulus/IonicFirebaseApp
src/pages/login/login.ts
TypeScript