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.className); return state; }
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人,为了防止数据包过大,会报错 81017)*/ owner_filter?: { /*用户ID列表。最多100个*/ userid_list: string[] } limit?: number //分页,预期请求的数据量,取值范围 1 ~ 1000 }) { const data: { chat_id: string /* 客户群跟进状态。 0 - 跟进人正常 1 - 跟进人离职 2 - 离职继承中 3 - 离职继承完成 */ status: 0 | 1 | 2 | 3 }[] = [] let cursor = undefined do { const result: any = await this.request({ method: 'post', url: 'externalcontact/groupchat/list', data: { ...(args || {}), cursor: cursor, limit: args?.limit || 500 } }) data.push(...result.group_chat_list) cursor = result.next_cursor } while (cursor && args?.limit == null) return data } /** * 获取客户群详情 */ 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_chat as { chat_id: string //客户群ID name?: string //群名 owner?: string //群主ID create_time: number //群的创建时间 notice?: string //群公告 member_list: { userid: string //群成员id type: 1 | 2 //成员类型。1-企业成员, 2-外部联系人 unionid?: string //外部联系人在微信开放平台的唯一身份标识(微信unionid),通过此字段企业可将外部联系人与公众号/小程序用户关联起来。仅当群成员类型是微信用户(包括企业成员未添加好友),且企业绑定了微信开发者ID有此字段(查看绑定方法)。第三方不可获取,上游企业不可获取下游企业客户的unionid字段 join_time: number //入群时间 /*入群方式。 1 - 由群成员邀请入群(直接邀请入群) 2 - 由群成员邀请入群(通过邀请链接入群) 3 - 通过扫描群二维码入群 */ join_scene: 1 | 2 | 3 invitor?: { //邀请者。目前仅当是由本企业内部成员邀请入群时会返回该值 userid: string // 邀请者的userid } group_nickname?: string //在群里的昵称 /*名字。仅当 need_name = 1 时返回 如果是微信用户,则返回其在微信中设置的名字 如果是企业微信联系人,则返回其设置对外展示的别名或实名 */ name?: string }[] admin_list?: { //群管理员列表 userid: string //群管理员userid }[] } } /** * 客户群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
MethodDeclaration
/** * 获取客户群列表 */ async listGroupChat(args?: { /*客户群跟进状态过滤。 0 - 所有列表(即不过滤) 1 - 离职待继承 2 - 离职继承中 3 - 离职继承完成 默认为0 */ status_filter?: 0 | 1 | 2 | 3 /*群主过滤。如果不填,表示获取应用可见范围内全部群主的数据(但是不建议这么用,如果可见范围人数超过1000人,为了防止数据包过大,会报错 81017)*/ owner_filter?: { /*用户ID列表。最多100个*/ userid_list: string[] } limit?: number //分页,预期请求的数据量,取值范围 1 ~ 1000 }) { const data: { chat_id: string /* 客户群跟进状态。 0 - 跟进人正常 1 - 跟进人离职 2 - 离职继承中 3 - 离职继承完成 */ status: 0 | 1 | 2 | 3 }[] = [] let cursor = undefined do { const result: any = await this.request({ method: 'post', url: 'externalcontact/groupchat/list', data: { ...(args || {}), cursor: cursor, limit: args?.limit || 500 } }) data.push(...result.group_chat_list) cursor = result.next_cursor } while (cursor && args?.limit == null) return data }
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_chat as { chat_id: string //客户群ID name?: string //群名 owner?: string //群主ID create_time: number //群的创建时间 notice?: string //群公告 member_list: { userid: string //群成员id type: 1 | 2 //成员类型。1-企业成员, 2-外部联系人 unionid?: string //外部联系人在微信开放平台的唯一身份标识(微信unionid),通过此字段企业可将外部联系人与公众号/小程序用户关联起来。仅当群成员类型是微信用户(包括企业成员未添加好友),且企业绑定了微信开发者ID有此字段(查看绑定方法)。第三方不可获取,上游企业不可获取下游企业客户的unionid字段 join_time: number //入群时间 /*入群方式。 1 - 由群成员邀请入群(直接邀请入群) 2 - 由群成员邀请入群(通过邀请链接入群) 3 - 通过扫描群二维码入群 */ join_scene: 1 | 2 | 3 invitor?: { //邀请者。目前仅当是由本企业内部成员邀请入群时会返回该值 userid: string // 邀请者的userid } group_nickname?: string //在群里的昵称 /*名字。仅当 need_name = 1 时返回 如果是微信用户,则返回其在微信中设置的名字 如果是企业微信联系人,则返回其设置对外展示的别名或实名 */ name?: string }[] admin_list?: { //群管理员列表 userid: string //群管理员userid }[] } }
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 container mx-auto items-center`}
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').subscribe( rides => expect(rides).toEqual(falseRides) ); const req2 = httpTestingController.expectOne(rideListService.baseUrl + '?driving=false&'); expect(req2.request.method).toEqual('GET'); req2.flush(falseRides); // rideListService.getRides('').subscribe( // rides => expect(rides).toEqual(emptyRides) // ); }
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( destination => { expect(destination).toBe(teacherDestination); } ); const expectedUrl: string = rideListService.baseUrl + '/new'; const req = httpTestingController.expectOne(expectedUrl); expect(req.request.method).toEqual('POST'); req.flush(teacherDestination); }
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; const req = httpTestingController.expectOne(expectedUrl); expect(req.request.method).toEqual('GET'); req.flush(targetRide); }
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(editedRide).subscribe( destination => { expect(destination).toBe(editedTeacherDestination); } ); const expectedUrl: string = rideListService.baseUrl + '/update'; const req = httpTestingController.expectOne(expectedUrl); expect(req.request.method).toEqual('POST'); req.flush(editedTeacherDestination); }
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 the lab' }; rideListService.deleteRide(deletedRide._id.toString()).subscribe( destination => { expect(destination).toBe(deletedTeacherDestination); } ); const expectedUrl: string = rideListService.baseUrl + '/remove'; const req = httpTestingController.expectOne(expectedUrl); expect(req.request.method).toEqual('POST'); req.flush(deletedTeacherDestination); }
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 } }; return jsonObj; }
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 * and the reasons for the failures. * */ "failedMetrics"?: Array<model.FailedMetricRecord>; }
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 to reference this property in query operations such as 'filter' in the fluent request API. */ code: ComplexTypeStringPropertyField<EntityT> = new ComplexTypeStringPropertyField('Code', this, 'Edm.String'); /** * Representation of the [[AssetClassLine.lineNumber]] property for query construction. * Use to reference this property in query operations such as 'filter' in the fluent request API. */ lineNumber: ComplexTypeNumberPropertyField<EntityT> = new ComplexTypeNumberPropertyField('LineNumber', this, 'Edm.Int32'); /** * Representation of the [[AssetClassLine.depreciationAreaId]] property for query construction. * Use to reference this property in query operations such as 'filter' in the fluent request API. */ depreciationAreaId: ComplexTypeStringPropertyField<EntityT> = new ComplexTypeStringPropertyField('DepreciationAreaID', this, 'Edm.String'); /** * Representation of the [[AssetClassLine.activeStatus]] property for query construction. * Use to reference this property in query operations such as 'filter' in the fluent request API. */ activeStatus: ComplexTypeEnumPropertyField<EntityT> = new ComplexTypeEnumPropertyField('ActiveStatus', this); /** * Representation of the [[AssetClassLine.accountDetermination]] property for query construction. * Use to reference this property in query operations such as 'filter' in the fluent request API. */ accountDetermination: ComplexTypeStringPropertyField<EntityT> = new ComplexTypeStringPropertyField('AccountDetermination', this, 'Edm.String'); /** * Representation of the [[AssetClassLine.depreciationTypeId]] property for query construction. * Use to reference this property in query operations such as 'filter' in the fluent request API. */ depreciationTypeId: ComplexTypeStringPropertyField<EntityT> = new ComplexTypeStringPropertyField('DepreciationTypeID', this, 'Edm.String'); /** * Representation of the [[AssetClassLine.useLife]] property for query construction. * Use to reference this property in query operations such as 'filter' in the fluent request API. */ useLife: ComplexTypeNumberPropertyField<EntityT> = new ComplexTypeNumberPropertyField('UseLife', this, 'Edm.Int32'); /** * Creates an instance of AssetClassLineField. * * @param fieldName - Actual name of the field as used in the OData request. * @param fieldOf - Either the parent entity constructor of the parent complex type this field belongs to. */ constructor(fieldName: string, fieldOf: ConstructorOrField<EntityT>) { super(fieldName, fieldOf, AssetClassLine); } }
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 */ activeStatus?: BoYesNoEnum; /** * Account Determination. * @nullable */ accountDetermination?: string; /** * Depreciation Type Id. * @nullable */ depreciationTypeId?: string; /** * Use Life. * @nullable */ useLife?: number; }
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 others? eventDefMemberAdders?: EventDefMemberAdder[] eventSourceRefiners?: GenericRefiners isDraggableTransformers?: eventIsDraggableTransformer[] eventDragMutationMassagers?: eventDragMutationMassager[] eventDefMutationAppliers?: eventDefMutationApplier[] dateSelectionTransformers?: dateSelectionJoinTransformer[] datePointTransforms?: DatePointTransform[] dateSpanTransforms?: DateSpanTransform[] views?: ViewConfigInputHash viewPropsTransformers?: ViewPropsTransformerClass[] isPropsValid?: isPropsValidTester externalDefTransforms?: ExternalDefTransform[] eventResizeJoinTransforms?: EventResizeJoinTransforms[] viewContainerAppends?: ViewContainerAppend[] eventDropTransformers?: EventDropTransformers[] componentInteractions?: InteractionClass[] calendarInteractions?: CalendarInteractionClass[] themeClasses?: { [themeSystemName: string]: ThemeClass } eventSourceDefs?: EventSourceDef<any>[] cmdFormatter?: CmdFormatterFunc recurringTypes?: RecurringType<any>[] namedTimeZonedImpl?: NamedTimeZoneImplClass initialView?: string elementDraggingImpl?: ElementDraggingClass optionChangeHandlers?: OptionChangeHandlerMap scrollGridImpl?: ScrollGridImpl contentTypeHandlers?: ContentTypeHandlers listenerRefiners?: GenericListenerRefiners optionRefiners?: GenericRefiners propSetHandlers?: { [propName: string]: (val: any, context: CalendarData) => void } // TODO: make better types }
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: eventIsDraggableTransformer[] eventDragMutationMassagers: eventDragMutationMassager[] eventDefMutationAppliers: eventDefMutationApplier[] dateSelectionTransformers: dateSelectionJoinTransformer[] datePointTransforms: DatePointTransform[] dateSpanTransforms: DateSpanTransform[] views: ViewConfigInputHash // TODO: parse before gets to this step? viewPropsTransformers: ViewPropsTransformerClass[] isPropsValid: isPropsValidTester | null externalDefTransforms: ExternalDefTransform[] eventResizeJoinTransforms: EventResizeJoinTransforms[] viewContainerAppends: ViewContainerAppend[] eventDropTransformers: EventDropTransformers[] componentInteractions: InteractionClass[] calendarInteractions: CalendarInteractionClass[] themeClasses: { [themeSystemName: string]: ThemeClass } eventSourceDefs: EventSourceDef<any>[] cmdFormatter?: CmdFormatterFunc recurringTypes: RecurringType<any>[] namedTimeZonedImpl?: NamedTimeZoneImplClass initialView: string elementDraggingImpl?: ElementDraggingClass optionChangeHandlers: OptionChangeHandlerMap scrollGridImpl: ScrollGridImpl | null contentTypeHandlers: ContentTypeHandlers listenerRefiners: GenericListenerRefiners optionRefiners: GenericRefiners propSetHandlers: { [propName: string]: (val: any, context: CalendarData) => void } }
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(ssdMobileNetV1WeightMap), faceapi.nets.faceLandmark68Net.loadFromWeightMap(faceLandmark68WeightMap) ]); }
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