type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
InterfaceDeclaration |
interface Output {
foo: number,
bar: number,
} | Paqmind/rambda | source/renameProps-spec.ts | TypeScript |
ArrowFunction |
() => {
this.setState({
on: !this.state.on
});
} | tplvcontrol/tpleng-site-2020 | src/ToggleRPC.tsx | TypeScript |
ClassDeclaration |
export default class Toggle extends Component {
state = {
on: false
};
toggle = () => {
this.setState({
on: !this.state.on
});
};
render() {
const { children } = this.props;
return children({
on: this.state.on,
toggle: this.toggle
});
}
} | tplvcontrol/tpleng-site-2020 | src/ToggleRPC.tsx | TypeScript |
MethodDeclaration |
render() {
const { children } = this.props;
return children({
on: this.state.on,
toggle: this.toggle
});
} | tplvcontrol/tpleng-site-2020 | src/ToggleRPC.tsx | TypeScript |
ClassDeclaration | /**
* CodePipeline invoke Action that is provided by an AWS Lambda function.
*
* @see https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-invoke-lambda-function.html
*/
export class LambdaInvokeAction extends Action {
private readonly props: LambdaInvokeActionProps;
constructor(props: LambdaInvok... | CarlosDomingues/aws-cdk | packages/@aws-cdk/aws-codepipeline-actions/lib/lambda/invoke-action.ts | TypeScript |
InterfaceDeclaration | /**
* Construction properties of the {@link LambdaInvokeAction Lambda invoke CodePipeline Action}.
*/
export interface LambdaInvokeActionProps extends codepipeline.CommonAwsActionProps {
/**
* The optional input Artifacts of the Action.
* A Lambda Action can have up to 5 inputs.
* The inputs will appear in... | CarlosDomingues/aws-cdk | packages/@aws-cdk/aws-codepipeline-actions/lib/lambda/invoke-action.ts | TypeScript |
MethodDeclaration | /**
* Reference a CodePipeline variable defined by the Lambda function this action points to.
* Variables in Lambda invoke actions are defined by calling the PutJobSuccessResult CodePipeline API call
* with the 'outputVariables' property filled.
*
* @param variableName the name of the variable to referen... | CarlosDomingues/aws-cdk | packages/@aws-cdk/aws-codepipeline-actions/lib/lambda/invoke-action.ts | TypeScript |
MethodDeclaration |
protected bound(scope: Construct, _stage: codepipeline.IStage, options: codepipeline.ActionBindOptions):
codepipeline.ActionConfig {
// allow pipeline to list functions
options.role.addToPolicy(new iam.PolicyStatement({
actions: ['lambda:ListFunctions'],
resources: ['*'],
}));
// allow p... | CarlosDomingues/aws-cdk | packages/@aws-cdk/aws-codepipeline-actions/lib/lambda/invoke-action.ts | TypeScript |
ArrowFunction |
() => import(/* webpackChunkName: "playersList" */ '@/views/player/list.vue') | leonway/honor-admin | src/router/modules/players.ts | TypeScript |
ArrowFunction |
() => import('@/views/player/create.vue') | leonway/honor-admin | src/router/modules/players.ts | TypeScript |
ArrowFunction |
() => import('@/views/player/edit.vue') | leonway/honor-admin | src/router/modules/players.ts | TypeScript |
ClassDeclaration |
export class DisassociateServerVirtualIpRequest {
private 'nic_id': string | undefined;
public body?: DisassociateServerVirtualIpRequestBody;
public constructor(nicId?: any) {
this['nic_id'] = nicId;
}
public withNicId(nicId: string): DisassociateServerVirtualIpRequest {
this['nic_... | huaweicloud/huaweicloud-sdk-nodejs-v3 | services/ecs/v2/model/DisassociateServerVirtualIpRequest.ts | TypeScript |
MethodDeclaration |
public withNicId(nicId: string): DisassociateServerVirtualIpRequest {
this['nic_id'] = nicId;
return this;
} | huaweicloud/huaweicloud-sdk-nodejs-v3 | services/ecs/v2/model/DisassociateServerVirtualIpRequest.ts | TypeScript |
MethodDeclaration |
public withBody(body: DisassociateServerVirtualIpRequestBody): DisassociateServerVirtualIpRequest {
this['body'] = body;
return this;
} | huaweicloud/huaweicloud-sdk-nodejs-v3 | services/ecs/v2/model/DisassociateServerVirtualIpRequest.ts | TypeScript |
ArrowFunction |
i => contextTypeOf(ctx).includes(i) | t532-old/ionjs | src/transform/origin.ts | TypeScript |
ClassDeclaration | /** Transformations related to the origin user */
export class OriginTransform extends BaseTransform {
protected _manager = new MiddlewareManager<IExtensibleMessage>()
private readonly _operators: number[]
/**
* @param operators users with OriginPermission.OPERATOR permission level
*/
public c... | t532-old/ionjs | src/transform/origin.ts | TypeScript |
EnumDeclaration | /** Permission levels of OriginTransform.hasPermission() */
export enum OriginPermission { EVERYONE, ADMIN, OWNER, OPERATOR } | t532-old/ionjs | src/transform/origin.ts | TypeScript |
MethodDeclaration | /** Deep-copy a Transform object */
public static from(last: OriginTransform) {
const next = new OriginTransform(last._operators)
next._manager = MiddlewareManager.from(last._manager)
return next
} | t532-old/ionjs | src/transform/origin.ts | TypeScript |
MethodDeclaration | /** Require the message to be from specific group(s) */
public isFromGroup(...id: number[]) {
return this._derive(async function (ctx, next) {
if (id.includes(ctx.group_id)) await next()
})
} | t532-old/ionjs | src/transform/origin.ts | TypeScript |
MethodDeclaration | /** Require the message to be from specific discuss group(s) */
public isFromDiscuss(...id: number[]) {
return this._derive(async function (ctx, next) {
if (id.includes(ctx.discuss_id)) await next()
})
} | t532-old/ionjs | src/transform/origin.ts | TypeScript |
MethodDeclaration | /** Require the message to be from specific user(s) */
public isFromUser(...id: number[]) {
return this._derive(async function (ctx, next) {
if (id.includes(ctx.user_id)) await next()
})
} | t532-old/ionjs | src/transform/origin.ts | TypeScript |
MethodDeclaration | /** Require the message to be specific type(s) */
public isType(...types: string[]) {
return this._derive(async function (ctx, next) {
if (types.some(i => contextTypeOf(ctx).includes(i))) await next()
})
} | t532-old/ionjs | src/transform/origin.ts | TypeScript |
MethodDeclaration | /** Require the message's sender to have a specific level of permission */
public hasPermission(level: OriginPermission) {
return this._derive(async function (ctx, next) {
switch (level) {
case OriginPermission.EVERYONE:
await next()
break
... | t532-old/ionjs | src/transform/origin.ts | TypeScript |
MethodDeclaration |
private _derive(mw: IMiddleware<IExtensibleMessage>) {
const next = OriginTransform.from(this)
next._manager = this._manager.use(mw)
return next
} | t532-old/ionjs | src/transform/origin.ts | TypeScript |
ArrowFunction |
p => p.theme.breakpoints.down("md") | jean182/blog-182 | src/components/newsletter/newsletter.styled.ts | TypeScript |
ArrowFunction |
p => p.theme.breakpoints.up("md") | jean182/blog-182 | src/components/newsletter/newsletter.styled.ts | TypeScript |
ClassDeclaration | /**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1.21.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do no... | hermaproditus/javascript | dist/gen/model/v1beta1TokenReviewSpec.d.ts | TypeScript |
MethodDeclaration |
static getAttributeTypeMap(): {
name: string;
baseName: string;
type: string;
}[]; | hermaproditus/javascript | dist/gen/model/v1beta1TokenReviewSpec.d.ts | TypeScript |
ArrowFunction |
(name: string, document: Element | Document): Element[] => {
return Array.from(document.querySelectorAll("meta")).filter(meta => {
return meta.getAttribute("name") === name;
});
} | HataYuki/rikaaa-paging | src/getMeta.ts | TypeScript |
ArrowFunction |
meta => {
return meta.getAttribute("name") === name;
} | HataYuki/rikaaa-paging | src/getMeta.ts | TypeScript |
ClassDeclaration |
export default class Collapse extends React.Component<Props> {} | AshoneA/collapse | index.d.ts | TypeScript |
InterfaceDeclaration |
export interface Props {
children: React.ReactChild,
prefixCls: string,
activeKey: string | string[],
defaultActiveKey: string | string[],
openAnimation: object,
onChange: (key: any) => void,
accordion: boolean,
className: string,
style: object,
destroyInactivePanel: boolean,
expandIcon: (props: ... | AshoneA/collapse | index.d.ts | TypeScript |
ClassDeclaration |
@Entity('sougou_dict_metas')
export class SougouDictMetaEntity {
@PrimaryColumn({ type: 'int' })
id: number;
@Column('text', { nullable: false })
name: string;
@Column('text', { nullable: true })
createdBy: string;
@Column('timestamp', {
// comment: 'Unix Timestamp',
// transformer: {
// fr... | wenerme/apis | src/libs/sougou/dict/schema.ts | TypeScript |
ArrowFunction |
() => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getTitleText()).toEqual('cacc-web-frontend app is running!');
});
afterEach(async () => {
// Assert that there are no errors emitted from th... | kkoripl/CACCGeneratorWeb | e2e/src/app.e2e-spec.ts | TypeScript |
ArrowFunction |
() => {
page = new AppPage();
} | kkoripl/CACCGeneratorWeb | e2e/src/app.e2e-spec.ts | TypeScript |
ArrowFunction |
() => {
page.navigateTo();
expect(page.getTitleText()).toEqual('cacc-web-frontend app is running!');
} | kkoripl/CACCGeneratorWeb | e2e/src/app.e2e-spec.ts | TypeScript |
ArrowFunction |
async () => {
// Assert that there are no errors emitted from the browser
const logs = await browser.manage().logs().get(logging.Type.BROWSER);
expect(logs).not.toContain(jasmine.objectContaining({
level: logging.Level.SEVERE,
} as logging.Entry));
} | kkoripl/CACCGeneratorWeb | e2e/src/app.e2e-spec.ts | TypeScript |
ArrowFunction |
() => {
let component: DiscoverComponent;
let fixture: ComponentFixture<DiscoverComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [DiscoverComponent],
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(DiscoverComponent);
... | DanteDeRuwe/zappr-frontend | src/app/series/discover/discover.component.spec.ts | TypeScript |
ArrowFunction |
() => {
TestBed.configureTestingModule({
declarations: [DiscoverComponent],
}).compileComponents();
} | DanteDeRuwe/zappr-frontend | src/app/series/discover/discover.component.spec.ts | TypeScript |
ArrowFunction |
() => {
fixture = TestBed.createComponent(DiscoverComponent);
component = fixture.componentInstance;
fixture.detectChanges();
} | DanteDeRuwe/zappr-frontend | src/app/series/discover/discover.component.spec.ts | TypeScript |
ArrowFunction |
() => {
let httpPutAction: HttpPutAction;
beforeEach(() => {
httpPutAction = new HttpPutAction(null, null);
});
it('should be created', () => {
expect(httpPutAction).to.be.ok;
});
} | Rothen/http-ts | spec/controller/helper/http_method/HTTPPutAction.spec.ts | TypeScript |
ArrowFunction |
() => {
httpPutAction = new HttpPutAction(null, null);
} | Rothen/http-ts | spec/controller/helper/http_method/HTTPPutAction.spec.ts | TypeScript |
ArrowFunction |
() => {
expect(httpPutAction).to.be.ok;
} | Rothen/http-ts | spec/controller/helper/http_method/HTTPPutAction.spec.ts | TypeScript |
ClassDeclaration |
export class WowfModel implements DeserializableModel<WowfModel> {
//TODO field name : type
deserialize(input: any): WowfModel {
Object.assign(this, input);
return this;
}
} | morgan630218/Test | src/app/models/wowf-model.ts | TypeScript |
MethodDeclaration | //TODO field name : type
deserialize(input: any): WowfModel {
Object.assign(this, input);
return this;
} | morgan630218/Test | src/app/models/wowf-model.ts | TypeScript |
ArrowFunction |
(rgbString: string): boolean => {
if (typeof rgbString !== 'string')
throw new Error(`'rgbString' must be a string`);
if (rgbString.startsWith('#')) return validateHexRGB(rgbString);
else return validateFunctionalRGB(rgbString);
} | pr357/is-valid-css-color | src/isValidRGB/index.ts | TypeScript |
FunctionDeclaration |
function useHookWithRefCallback<T>(init: T) {
const [rect, setRect] = React.useState(init);
const ref = React.useCallback((node: T) => {
setRect(node);
}, []);
return [rect, ref] as const;
} | jac-wida/daily-targum-website | src/components/Carousel.tsx | TypeScript |
FunctionDeclaration |
function Button({
onClick,
direction
}: {
onClick: () => any
direction: 'left' | 'right'
}) {
return (
<div
className={styles.buttonWrap}
style={{
[direction]: 0,
justifyContent: direction === 'left' ? 'flex-start' : 'flex-end'
}} | jac-wida/daily-targum-website | src/components/Carousel.tsx | TypeScript |
FunctionDeclaration |
export function Carousel<T>({
id,
data,
renderItem,
keyExtractor,
inverted = false,
ItemSeparatorComponent,
ListEmptyComponent,
ListHeaderComponent,
ListFooterComponent,
className,
style,
initialIndex = 0,
onChange = () => {},
width = 200,
forwardRef,
enableArrowKeys = false
}: Carous... | jac-wida/daily-targum-website | src/components/Carousel.tsx | TypeScript |
FunctionDeclaration |
function renderItemWithExtras(item: any, i: number) {
return <>
{i !== 0 ? ItemSeparatorComponent : null} | jac-wida/daily-targum-website | src/components/Carousel.tsx | TypeScript |
FunctionDeclaration |
function CarouselResponsive<T>({
...props
}: CarouselBase<T>) {
const [ width, setWidth ] = React.useState(0);
const [ div, ref ] = useHookWithRefCallback<HTMLDivElement | null>(null);
const handleResize = React.useCallback(
() => {
const newWidth = div?.offsetWidth ?? 0;
if (newWidth !== widt... | jac-wida/daily-targum-website | src/components/Carousel.tsx | TypeScript |
ArrowFunction |
(node: T) => {
setRect(node);
} | jac-wida/daily-targum-website | src/components/Carousel.tsx | TypeScript |
ArrowFunction |
() => {
if (!div) return;
div.scrollLeft = index * width;
} | jac-wida/daily-targum-website | src/components/Carousel.tsx | TypeScript |
ArrowFunction |
() => {
setLoading(true);
if (forwardRef) {
forwardRef(div);
}
if (!div) return;
setIndex(initialIndex);
const newIndex = clamp(
0,
initialIndex,
data.length - 1
);
div.scrollLeft = newIndex * width;
// timeout prevents scroll animation on load
let t... | jac-wida/daily-targum-website | src/components/Carousel.tsx | TypeScript |
ArrowFunction |
() => {
setLoading(false);
} | jac-wida/daily-targum-website | src/components/Carousel.tsx | TypeScript |
ArrowFunction |
() => {
clearTimeout(timeout);
} | jac-wida/daily-targum-website | src/components/Carousel.tsx | TypeScript |
ArrowFunction |
(offset: number) => {
if (!div) return;
const newIndex = clamp(0, index + offset, data.length - 1);
// div.scrollLeft = newIndex * width;
div.scroll({ top: 0, left: newIndex * width, behavior: 'smooth' });
} | jac-wida/daily-targum-website | src/components/Carousel.tsx | TypeScript |
ArrowFunction |
() => {
if (!enableArrowKeys || typeof window === 'undefined') {
return;
}
const LEFT_ARROW = 37;
const RIGHT_ARROW = 39;
const handleEsc = (event: KeyboardEvent) => {
if (event.keyCode === LEFT_ARROW) {
updateScroll(-1);
}
if (event.keyCode === RIGHT_ARROW) {
... | jac-wida/daily-targum-website | src/components/Carousel.tsx | TypeScript |
ArrowFunction |
(event: KeyboardEvent) => {
if (event.keyCode === LEFT_ARROW) {
updateScroll(-1);
}
if (event.keyCode === RIGHT_ARROW) {
updateScroll(1);
}
} | jac-wida/daily-targum-website | src/components/Carousel.tsx | TypeScript |
ArrowFunction |
() => {
window.removeEventListener('keydown', handleEsc);
} | jac-wida/daily-targum-website | src/components/Carousel.tsx | TypeScript |
ArrowFunction |
() => {
if (crntIndex !== index) {
setIndex(crntIndex);
onChange(crntIndex);
}
} | jac-wida/daily-targum-website | src/components/Carousel.tsx | TypeScript |
ArrowFunction |
(item: any, i: number) => (
<React.Fragment key={keyExtractor(item, i)}>
<div
className | jac-wida/daily-targum-website | src/components/Carousel.tsx | TypeScript |
ArrowFunction |
() => {
const newWidth = div?.offsetWidth ?? 0;
if (newWidth !== width) {
setWidth(div?.offsetWidth ?? 0);
}
} | jac-wida/daily-targum-website | src/components/Carousel.tsx | TypeScript |
ArrowFunction |
() => {
handleResize();
} | jac-wida/daily-targum-website | src/components/Carousel.tsx | TypeScript |
ArrowFunction |
() => {
if(process.browser && div) {
window.addEventListener('resize', handleResize, { passive: true });
return () => {
window.removeEventListener('resize', handleResize);
}
}
} | jac-wida/daily-targum-website | src/components/Carousel.tsx | TypeScript |
ArrowFunction |
() => {
window.removeEventListener('resize', handleResize);
} | jac-wida/daily-targum-website | src/components/Carousel.tsx | TypeScript |
InterfaceDeclaration |
interface CarouselBase<T> {
id?: string;
data: T[];
renderItem: (item: T, index: number) => ReactChildren;
keyExtractor: (item: T, index: number) => string | number;
inverted?: boolean;
ItemSeparatorComponent?: ReactChildren;
ListEmptyComponent?: ReactChildren;
ListHeaderComponent?: ReactChildren;
Li... | jac-wida/daily-targum-website | src/components/Carousel.tsx | TypeScript |
InterfaceDeclaration |
interface CarouselProps<T> extends CarouselBase<T> {
forwardRef?: ((instance: HTMLDivElement | null) => void) | null
} | jac-wida/daily-targum-website | src/components/Carousel.tsx | TypeScript |
MethodDeclaration |
cn(
className,
styles | jac-wida/daily-targum-website | src/components/Carousel.tsx | TypeScript |
MethodDeclaration |
keyExtractor(item, i) | jac-wida/daily-targum-website | src/components/Carousel.tsx | TypeScript |
MethodDeclaration |
renderItemWithExtras(item, i) | jac-wida/daily-targum-website | src/components/Carousel.tsx | TypeScript |
ArrowFunction |
() => {
const [response, setResponse] = useState<DebugResponse | null>(null)
const [host, setHost] = useState("127.0.0.1")
const [port, setPort] = useState("45678")
const [endpoint, setEndpoint] = useState("search")
const [requestBody, setRequestBody] = useState("")
const [loading, setLoading] = useState(f... | anhgeeky/dashboard | src/views/DebuggingTool.tsx | TypeScript |
ArrowFunction |
async () => {
setLoading(true)
console.log("Sending Request Body", JSON.parse(requestBody))
try {
const searchResult = await axios.request<DebugResponse>({
method: "post",
url: `http://${host}:${port}/${endpoint}`,
data: requestBody,
headers: {
mode: "no-co... | anhgeeky/dashboard | src/views/DebuggingTool.tsx | TypeScript |
TypeAliasDeclaration |
export type ResponseMode = "text" | "image" | "audio" | "video" | anhgeeky/dashboard | src/views/DebuggingTool.tsx | TypeScript |
TypeAliasDeclaration |
export type Route = {
end_time: string
start_time: string
pod: string
pod_id: string
} | anhgeeky/dashboard | src/views/DebuggingTool.tsx | TypeScript |
TypeAliasDeclaration |
export type Score = {
description: string
op_name: string
ref_id: string
operands?: Score[]
value?: number
} | anhgeeky/dashboard | src/views/DebuggingTool.tsx | TypeScript |
TypeAliasDeclaration |
export type Match = {
id: string
scores: {
values: {
[key: string]: Score
}
}
mime_type: string
adjacency?: number
granularity?: number
text?: string
uri?: string
} | anhgeeky/dashboard | src/views/DebuggingTool.tsx | TypeScript |
TypeAliasDeclaration |
export type Chunk = {
id: string
granularity?: number
content_hash: string
mime_type: string
parent_id: string
text?: string
uri?: string
matches: Match[]
} | anhgeeky/dashboard | src/views/DebuggingTool.tsx | TypeScript |
TypeAliasDeclaration |
export type Doc = {
id: string
tags: { [key: string]: string }
adjacency?: number
modality?: string
score?: { value: number }
text?: string
uri?: string
mime_type?: string
matches?: Match[]
chunks?: Chunk[]
} | anhgeeky/dashboard | src/views/DebuggingTool.tsx | TypeScript |
TypeAliasDeclaration |
export type DebugResponse = {
request_id: string
parameters: { mode: ResponseMode }
routes: Route[]
header: {
exec_endpoint: string
}
data: { docs: Doc[] } | Doc[]
} | anhgeeky/dashboard | src/views/DebuggingTool.tsx | TypeScript |
ArrowFunction |
(path:string) => {
if (fs.existsSync(path)) {
return dotenv.parse(fs.readFileSync(path, 'utf8').toString())
}
return {};
} | kaiquelupo/twilio-pulumi | src/utils/index.ts | TypeScript |
ArrowFunction |
(attributes: any) => {
const { envPath, env, cwd } = attributes;
const newAttributes = { ...attributes };
newAttributes.cwd = path.join(process.cwd(), cwd);
newAttributes.pkgJson = require(path.join(newAttributes.cwd, "package.json"));
if(envPath) {
newAttributes.env = {
... | kaiquelupo/twilio-pulumi | src/utils/index.ts | TypeScript |
ArrowFunction |
(cwd:string) => {
const absolutePath = cwd ? path.join(process.cwd(), cwd) : process.cwd();
const pathMatch = absolutePath.match(/.*\/(src\/.*)/);
const relativePath = pathMatch ? pathMatch[1] : "";
return {
absolutePath,
relativePath
}
} | kaiquelupo/twilio-pulumi | src/utils/index.ts | TypeScript |
ArrowFunction |
(opts?:any) => {
const { isServerless=false } = opts || {};
const {
TWILIO_ACCOUNT_SID,
TWILIO_AUTH_TOKEN,
TWILIO_USERNAME,
TWILIO_PASSWORD
} = process.env;
if(isServerless) {
return new TwilioServerlessApiClient({
username: (TWILIO_USERN... | kaiquelupo/twilio-pulumi | src/utils/index.ts | TypeScript |
ArrowFunction |
props => props.theme.space.sm | Bojagi/zendesk-react-components | packages/tables/stories/examples/Scrollable.tsx | TypeScript |
ArrowFunction |
props => props.theme.lineHeights.xl | Bojagi/zendesk-react-components | packages/tables/stories/examples/Scrollable.tsx | TypeScript |
ArrowFunction |
props => props.theme.fontSizes.xl | Bojagi/zendesk-react-components | packages/tables/stories/examples/Scrollable.tsx | TypeScript |
ArrowFunction |
() => (
<Dropdown onSelect={(selectedKey: any) | Bojagi/zendesk-react-components | packages/tables/stories/examples/Scrollable.tsx | TypeScript |
ArrowFunction |
(data: any) => {
/**
* Ensure correct placement relative to trigger
**/
data.offsets.popper.top -= 2;
return data;
} | Bojagi/zendesk-react-components | packages/tables/stories/examples/Scrollable.tsx | TypeScript |
ArrowFunction |
({ foo }) => (
<div role="grid" | Bojagi/zendesk-react-components | packages/tables/stories/examples/Scrollable.tsx | TypeScript |
ArrowFunction |
data => (
<Row key={data.id} | Bojagi/zendesk-react-components | packages/tables/stories/examples/Scrollable.tsx | TypeScript |
InterfaceDeclaration |
interface IRow {
id: number;
subject: string;
requester: string;
requested: string;
type: string;
} | Bojagi/zendesk-react-components | packages/tables/stories/examples/Scrollable.tsx | TypeScript |
ClassDeclaration | /*
* Copyright 2021 Marcus Portmann
*
* 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 t... | marcusportmann/inception | src/inception-angular/projects/ngx-inception/core/src/session/services/session.ts | TypeScript |
MethodDeclaration | /**
* Confirm that the user associated with the session has the specified authority.
*
* @param requiredAuthority The required authority.
*
* @return True if the user associated with the session has the specified authority or false
* otherwise.
*/
hasAuthority(requiredAuthority: string): bo... | marcusportmann/inception | src/inception-angular/projects/ngx-inception/core/src/session/services/session.ts | TypeScript |
MethodDeclaration | /**
* Confirm that the user associated with the session has been assigned the required function.
*
* @param requiredFunctionCode The code for the required function.
*
* @return True if the user associated with the session has been assigned the required function
* or false otherwise.
*/
hasF... | marcusportmann/inception | src/inception-angular/projects/ngx-inception/core/src/session/services/session.ts | TypeScript |
MethodDeclaration | /**
* Confirm that the user associated with the session has been assigned the required role.
*
* @param requiredRoleCode The code for the required role.
*
* @return True if the user associated with the session has been assigned the required role or
* false otherwise.
*/
hasRole(requiredRole... | marcusportmann/inception | src/inception-angular/projects/ngx-inception/core/src/session/services/session.ts | TypeScript |
FunctionDeclaration |
function Layout(props) {
return (
<div
className={`${bulmaStyles.hero} ${bulmaStyles.isFullheight} ${
layoutStyles.isFullheight
}`} | okandavut/iftimer | src/app/layouts/default/layout.tsx | TypeScript |
FunctionDeclaration |
export declare function switchMode(mode: Mode): Mode; | beauwilliams/MSA-AUS-2020-AzureML | .codedoc/node_modules/@codedoc/core/dist/es5/components/darkmode/mode.d.ts | TypeScript |
EnumDeclaration |
export declare enum Mode {
Dark = 0,
Light = 1
} | beauwilliams/MSA-AUS-2020-AzureML | .codedoc/node_modules/@codedoc/core/dist/es5/components/darkmode/mode.d.ts | TypeScript |
ArrowFunction |
(plotDiv: HTMLDivElement | null): void => {
this.plotDiv = plotDiv;
} | alexisthual/hydrogen | lib/components/result-view/plotly.tsx | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.