type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
ArrowFunction
s => s.color === 'forest'
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
theme => avatarColor(theme, 'forest')
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
s => s.color === 'seafoam'
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
theme => avatarColor(theme, 'seafoam')
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
s => s.color === 'darkGreen'
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
theme => avatarColor(theme, 'darkGreen')
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
s => s.color === 'lightTeal'
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
theme => avatarColor(theme, 'lightTeal')
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
s => s.color === 'teal'
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
theme => avatarColor(theme, 'teal')
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
s => s.color === 'steel'
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
theme => avatarColor(theme, 'steel')
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
s => s.color === 'blue'
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
theme => avatarColor(theme, 'blue')
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
s => s.color === 'royalBlue'
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
theme => avatarColor(theme, 'royalBlue')
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
s => s.color === 'cornflower'
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
theme => avatarColor(theme, 'cornflower')
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
s => s.color === 'navy'
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
theme => avatarColor(theme, 'navy')
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
s => s.color === 'lavender'
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
theme => avatarColor(theme, 'lavender')
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
s => s.color === 'purple'
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
theme => avatarColor(theme, 'purple')
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
s => s.color === 'grape'
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
theme => avatarColor(theme, 'grape')
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
s => s.color === 'lilac'
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
theme => avatarColor(theme, 'lilac')
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
s => s.color === 'pink'
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
theme => avatarColor(theme, 'pink')
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
s => s.color === 'magenta'
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
theme => avatarColor(theme, 'magenta')
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
s => s.color === 'plum'
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
theme => avatarColor(theme, 'plum')
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
s => s.color === 'beige'
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
theme => avatarColor(theme, 'beige')
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
s => s.color === 'mink'
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
theme => avatarColor(theme, 'mink')
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
s => s.color === 'platinum'
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
theme => avatarColor(theme, 'platinum')
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
s => s.color === 'anchor'
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
theme => avatarColor(theme, 'anchor')
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ArrowFunction
(state: AvatarState): AvatarState => { state.className = ax(useStyles(state), state.className); state.badge.className = ax(useBadgeStyles(state), state.badge.className); state.image.className = ax(useImageStyles(state), state.image.className); state.label.className = ax(useLabelStyles(state), state.label.class...
joschemd/fluentui
packages/react-avatar/src/components/Avatar/useAvatarStyles.ts
TypeScript
ClassDeclaration
export abstract class CorpGroupChat extends CorpBase { /** * 获取客户群列表 */ async listGroupChat(args?: { /*客户群跟进状态过滤。 0 - 所有列表(即不过滤) 1 - 离职待继承 2 - 离职继承中 3 - 离职继承完成 默认为0 */ status_filter?: 0 | 1 | 2 | 3 /*群主过滤。如果不填,表示获取应用可见范围内全部群主的数据(但是不建议这么用,如果可见范围人数超过1000人,为了防止数据包过大,会报错...
logerzhu/typed-wx-api
src/work/corp/corp_groupchat.ts
TypeScript
MethodDeclaration
/** * 获取客户群列表 */ async listGroupChat(args?: { /*客户群跟进状态过滤。 0 - 所有列表(即不过滤) 1 - 离职待继承 2 - 离职继承中 3 - 离职继承完成 默认为0 */ status_filter?: 0 | 1 | 2 | 3 /*群主过滤。如果不填,表示获取应用可见范围内全部群主的数据(但是不建议这么用,如果可见范围人数超过1000人,为了防止数据包过大,会报错 81017)*/ owner_filter?: { /*用户ID列表。最多100个*/ ...
logerzhu/typed-wx-api
src/work/corp/corp_groupchat.ts
TypeScript
MethodDeclaration
/** * 获取客户群详情 */ async getGroupChat(args: { chat_id: string //客户群ID need_name?: 0 | 1 //是否需要返回群成员的名字group_chat.member_list.name。0-不返回;1-返回。默认不返回 }) { const result = await this.request({ method: 'post', url: 'externalcontact/groupchat/get', data: args }) return result.group_...
logerzhu/typed-wx-api
src/work/corp/corp_groupchat.ts
TypeScript
MethodDeclaration
/** * 客户群opengid转换 */ async opengidToChatid(opengid: string) { const result = await this.request({ method: 'post', url: 'externalcontact/opengid_to_chatid', data: { opengid: opengid } }) return result.chat_id }
logerzhu/typed-wx-api
src/work/corp/corp_groupchat.ts
TypeScript
ClassDeclaration
@Component({ styles:["div h2{ background-color:#f00; }"], template: ` <div class="component"> <h2>エラー!</h2> <p>ページが見当たりません。</p> </div> ` }) export class ErrorComponent { }
Yuki-Sakaguchi/angular-quickstart
samples/chap08/route-data/src/app/error.component.ts
TypeScript
ClassDeclaration
export class <%= classify
17630929962/ModelYouthCrmAngular
node_modules/ng-zorro-antd/schematics/demo/input-number-size/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts
TypeScript
FunctionDeclaration
function _onChange( ev: any, option: any ): void { console.dir(option); }
codecow58/ssm
src/modules/mobile/schools-management/dashboard/SSMDashboard.tsx
TypeScript
ArrowFunction
() => { const navigate = useNavigate(); const [calendarValue ,setCalendarValue] = useState(new Date()); const titleId = useId("title"); const [isModalOpen, { setTrue: showModal, setFalse: hideModal }] = useBoolean(false); return ( <Layout> <div className={tw`mt-10 flex flex-col w-64 c...
codecow58/ssm
src/modules/mobile/schools-management/dashboard/SSMDashboard.tsx
TypeScript
ArrowFunction
ride => ride.driving == true
UMM-CSci-3601-S19/iteration-2-sixteeneyes
client/src/app/rides/ride-list.service.spec.ts
TypeScript
ArrowFunction
ride => ride.driving == false
UMM-CSci-3601-S19/iteration-2-sixteeneyes
client/src/app/rides/ride-list.service.spec.ts
TypeScript
ArrowFunction
ride=> ride.driving.toString() == ''
UMM-CSci-3601-S19/iteration-2-sixteeneyes
client/src/app/rides/ride-list.service.spec.ts
TypeScript
ArrowFunction
() => { TestBed.configureTestingModule({ imports: [HttpClientTestingModule] }); httpClient = TestBed.get(HttpClient); httpTestingController = TestBed.get(HttpTestingController); rideListService = new RideListService(httpClient); }
UMM-CSci-3601-S19/iteration-2-sixteeneyes
client/src/app/rides/ride-list.service.spec.ts
TypeScript
ArrowFunction
() => { httpTestingController.verify(); }
UMM-CSci-3601-S19/iteration-2-sixteeneyes
client/src/app/rides/ride-list.service.spec.ts
TypeScript
ArrowFunction
() => { rideListService.getRides().subscribe( rides => expect(rides).toBe(testRides) ); const req = httpTestingController.expectOne(rideListService.baseUrl); expect(req.request.method).toEqual('GET'); req.flush(testRides); }
UMM-CSci-3601-S19/iteration-2-sixteeneyes
client/src/app/rides/ride-list.service.spec.ts
TypeScript
ArrowFunction
rides => expect(rides).toBe(testRides)
UMM-CSci-3601-S19/iteration-2-sixteeneyes
client/src/app/rides/ride-list.service.spec.ts
TypeScript
ArrowFunction
() => { rideListService.getRides('true').subscribe( rides => expect(rides).toEqual(trueRides) ); const req = httpTestingController.expectOne(rideListService.baseUrl + '?driving=true&'); expect(req.request.method).toEqual('GET'); req.flush(trueRides); }
UMM-CSci-3601-S19/iteration-2-sixteeneyes
client/src/app/rides/ride-list.service.spec.ts
TypeScript
ArrowFunction
rides => expect(rides).toEqual(trueRides)
UMM-CSci-3601-S19/iteration-2-sixteeneyes
client/src/app/rides/ride-list.service.spec.ts
TypeScript
ArrowFunction
() => { rideListService.getRides('true').subscribe( rides => expect(rides).toEqual(trueRides) ); const req = httpTestingController.expectOne(rideListService.baseUrl + '?driving=true&'); expect(req.request.method).toEqual('GET'); req.flush(trueRides); rideListService.getRides('false').su...
UMM-CSci-3601-S19/iteration-2-sixteeneyes
client/src/app/rides/ride-list.service.spec.ts
TypeScript
ArrowFunction
rides => expect(rides).toEqual(falseRides)
UMM-CSci-3601-S19/iteration-2-sixteeneyes
client/src/app/rides/ride-list.service.spec.ts
TypeScript
ArrowFunction
() => { const teacherDestination = 'St. Cloud'; const newRide: Ride = { driver: 'Teacher', destination: 'St. Cloud', origin: 'Becker', roundTrip: false, departureTime: 'August', notes: 'There is no escaping Morris' }; rideListService.addNewRide(newRide).subscribe( ...
UMM-CSci-3601-S19/iteration-2-sixteeneyes
client/src/app/rides/ride-list.service.spec.ts
TypeScript
ArrowFunction
destination => { expect(destination).toBe(teacherDestination); }
UMM-CSci-3601-S19/iteration-2-sixteeneyes
client/src/app/rides/ride-list.service.spec.ts
TypeScript
ArrowFunction
() => { const targetRide: Ride = testRides[1]; const targetDestination: string = targetRide.destination; rideListService.getRideByDestination(targetDestination).subscribe( ride => expect(ride).toBe(targetRide) ); const expectedUrl: string = rideListService.baseUrl + '/' + targetDestination; ...
UMM-CSci-3601-S19/iteration-2-sixteeneyes
client/src/app/rides/ride-list.service.spec.ts
TypeScript
ArrowFunction
ride => expect(ride).toBe(targetRide)
UMM-CSci-3601-S19/iteration-2-sixteeneyes
client/src/app/rides/ride-list.service.spec.ts
TypeScript
ArrowFunction
() => { const editedTeacherDestination = 'editedTeacherDestination'; const editedRide: Ride = { driver: 'Teacher', destination: 'Morris', origin: 'Home', roundTrip: false, departureTime: 'Year Round', notes: 'There is no escaping Morris' }; rideListService.editRide(...
UMM-CSci-3601-S19/iteration-2-sixteeneyes
client/src/app/rides/ride-list.service.spec.ts
TypeScript
ArrowFunction
destination => { expect(destination).toBe(editedTeacherDestination); }
UMM-CSci-3601-S19/iteration-2-sixteeneyes
client/src/app/rides/ride-list.service.spec.ts
TypeScript
ArrowFunction
() => { const deletedTeacherDestination = 'deletedTeacherDestination'; const deletedRide: Ride = { _id: { oid: 'gobbldygook' }, driver: 'Teacher', destination: 'Office', origin: 'Lab', roundTrip: false, departureTime: 'never', notes: 'There is no escaping...
UMM-CSci-3601-S19/iteration-2-sixteeneyes
client/src/app/rides/ride-list.service.spec.ts
TypeScript
ArrowFunction
destination => { expect(destination).toBe(deletedTeacherDestination); }
UMM-CSci-3601-S19/iteration-2-sixteeneyes
client/src/app/rides/ride-list.service.spec.ts
TypeScript
FunctionDeclaration
export function getJsonObj(obj: PostMetricDataResponseDetails): object { const jsonObj = { ...obj, ...{ "failedMetrics": obj.failedMetrics ? obj.failedMetrics.map(item => { return model.FailedMetricRecord.getJsonObj(item); }) : undefined } ...
cfjedimaster/oci-typescript-sdk
lib/monitoring/lib/model/post-metric-data-response-details.ts
TypeScript
ArrowFunction
item => { return model.FailedMetricRecord.getJsonObj(item); }
cfjedimaster/oci-typescript-sdk
lib/monitoring/lib/model/post-metric-data-response-details.ts
TypeScript
InterfaceDeclaration
/** * The response object returned from a PostMetricData operation. * */ export interface PostMetricDataResponseDetails { /** * The number of metric objects that failed input validation. */ "failedMetricsCount": number; /** * A list of records identifying metric objects that failed input validation ...
cfjedimaster/oci-typescript-sdk
lib/monitoring/lib/model/post-metric-data-response-details.ts
TypeScript
ArrowFunction
(format: string) => (format === 'text/html' ? '' : 'inserted')
djagya/plate
packages/serializers/html/src/deserializer/__tests__/withDeserializeHTML/plain-text.spec.tsx
TypeScript
ArrowFunction
() => { jest.spyOn(JSON, 'parse').mockReturnValue(<fragment>inserted</fragment>); const editor = createEditorPlugins({ editor: input, plugins: [createDeserializeHTMLPlugin()], }); editor.insertData(data as any); expect(input.children).toEqual(output.children); }
djagya/plate
packages/serializers/html/src/deserializer/__tests__/withDeserializeHTML/plain-text.spec.tsx
TypeScript
FunctionDeclaration
/** * @deprecated Since v1.6.0. Use [[AssetClassLine.build]] instead. */ export function createAssetClassLine(json: any): AssetClassLine { return AssetClassLine.build(json); }
gregorwolf/sap-business-one-odata-cap
srv/odata-client/sapb-1-service/AssetClassLine.ts
TypeScript
FunctionDeclaration
/** * @deprecated Since v1.25.0. Use `deserializeComplexTypeV2` or `deserializeComplexTypeV4` of the `@sap-cloud-sdk/core` package instead. */ export function build(json: { [keys: string]: FieldType }): AssetClassLine { return deserializeComplexTypeV4(json, AssetClassLine); }
gregorwolf/sap-business-one-odata-cap
srv/odata-client/sapb-1-service/AssetClassLine.ts
TypeScript
ClassDeclaration
/** * AssetClassLineField * @typeparam EntityT - Type of the entity the complex type field belongs to. */ export class AssetClassLineField<EntityT extends EntityV4> extends ComplexTypeField<EntityT, AssetClassLine> { /** * Representation of the [[AssetClassLine.code]] property for query construction. * Use t...
gregorwolf/sap-business-one-odata-cap
srv/odata-client/sapb-1-service/AssetClassLine.ts
TypeScript
InterfaceDeclaration
/** * AssetClassLine */ export interface AssetClassLine { /** * Code. * @nullable */ code?: string; /** * Line Number. * @nullable */ lineNumber?: number; /** * Depreciation Area Id. * @nullable */ depreciationAreaId?: string; /** * Active Status. * @nullable */ act...
gregorwolf/sap-business-one-odata-cap
srv/odata-client/sapb-1-service/AssetClassLine.ts
TypeScript
InterfaceDeclaration
// TODO: easier way to add new hooks? need to update a million things export interface PluginDefInput { deps?: PluginDef[] reducers?: ReducerFunc[] isLoadingFuncs?: ((state: Dictionary) => boolean)[] contextInit?: (context: CalendarContext) => void eventRefiners?: GenericRefiners // why not an array like othe...
Alfabolt/fullcalendar
packages/common/src/plugin-system-struct.ts
TypeScript
InterfaceDeclaration
export interface PluginHooks { reducers: ReducerFunc[] isLoadingFuncs: ((state: Dictionary) => boolean)[] contextInit: ((context: CalendarContext) => void)[] eventRefiners: GenericRefiners eventDefMemberAdders: EventDefMemberAdder[] eventSourceRefiners: GenericRefiners isDraggableTransformers: eventIsDra...
Alfabolt/fullcalendar
packages/common/src/plugin-system-struct.ts
TypeScript
InterfaceDeclaration
export interface PluginDef extends PluginHooks { id: string deps: PluginDef[] }
Alfabolt/fullcalendar
packages/common/src/plugin-system-struct.ts
TypeScript
InterfaceDeclaration
export interface ViewPropsTransformer { transform(viewProps: ViewProps, calendarProps: CalendarContentProps): any }
Alfabolt/fullcalendar
packages/common/src/plugin-system-struct.ts
TypeScript
TypeAliasDeclaration
export type ViewPropsTransformerClass = new() => ViewPropsTransformer
Alfabolt/fullcalendar
packages/common/src/plugin-system-struct.ts
TypeScript
TypeAliasDeclaration
export type ViewContainerAppend = (context: CalendarContext) => ComponentChildren
Alfabolt/fullcalendar
packages/common/src/plugin-system-struct.ts
TypeScript
ArrowFunction
(props: IButton) => { return ( <button className={classes.button}><strong>{props.text}</strong></button>
LoganCorey/PowerPoint-Sound-Extractor
client/src/components/Button/Button.tsx
TypeScript
InterfaceDeclaration
interface IButton { text: string; }
LoganCorey/PowerPoint-Sound-Extractor
client/src/components/Button/Button.tsx
TypeScript
FunctionDeclaration
export default function applyBail(mocha: Mocha, bail?: boolean) { mocha.suite.bail(bail || false); }
BarrMan/mocha-parallel-tests
src/bin/options/bail.ts
TypeScript
FunctionDeclaration
export async function init() { const [ ssdMobileNetV1WeightMap, faceLandmark68WeightMap ] = await Promise.all([ faceapi.tf.io.loadWeights(ssdMobileNetV1Manifest, './'), faceapi.tf.io.loadWeights(faceLandmark68Manifest, './') ]); await Promise.all([ faceapi.nets.ssdMobilenetv1.loadFromWeightMap(ssdMob...
dgurkaynak/deniz.co
src/face-api.ts
TypeScript
FunctionDeclaration
export declare function arrayMove<T>(array: T[], from: number, to: number): T[];
AbdulWahab0/abdul.wahab
node_modules/react-movable/lib/utils.d.ts
TypeScript
FunctionDeclaration
export declare function arrayRemove<T>(array: T[], index: number): T[];
AbdulWahab0/abdul.wahab
node_modules/react-movable/lib/utils.d.ts
TypeScript
FunctionDeclaration
export declare function getTranslateOffset(element: Element): number;
AbdulWahab0/abdul.wahab
node_modules/react-movable/lib/utils.d.ts
TypeScript
FunctionDeclaration
export declare function isTouchEvent(event: TouchEvent & MouseEvent): number;
AbdulWahab0/abdul.wahab
node_modules/react-movable/lib/utils.d.ts
TypeScript
FunctionDeclaration
export declare function transformItem(element: Element, offsetY?: number | null, offsetX?: number | null): void;
AbdulWahab0/abdul.wahab
node_modules/react-movable/lib/utils.d.ts
TypeScript
FunctionDeclaration
export declare function isItemTransformed(element: Element): boolean;
AbdulWahab0/abdul.wahab
node_modules/react-movable/lib/utils.d.ts
TypeScript
FunctionDeclaration
export declare function setItemTransition(element: Element, duration: number, timing?: string): void;
AbdulWahab0/abdul.wahab
node_modules/react-movable/lib/utils.d.ts
TypeScript
FunctionDeclaration
export declare function binarySearch(array: number[], targetValue: number): number;
AbdulWahab0/abdul.wahab
node_modules/react-movable/lib/utils.d.ts
TypeScript
FunctionDeclaration
export declare function checkIfInteractive(target: Element, rootElement: Element): boolean;
AbdulWahab0/abdul.wahab
node_modules/react-movable/lib/utils.d.ts
TypeScript
FunctionDeclaration
export function requireNativeComponent<P>(name: string, arg?: any): React.ComponentClass<P>;
berwyn/poketch
common/poketch.d.ts
TypeScript
ArrowFunction
(err) => { console.log(err); process.exit(0); }
alex-phillips/waveline-server
src/app.ts
TypeScript