type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
FunctionDeclaration
function constructOrphanErrors() { const orphanedErrors = new Set(); // Error messages that are already displayed in a field should not be // displayed in the common area - orphan errors. const usedMessages = new Set(); Object.values(usedErrors).forEach((errs: IErrorObj[]) => { errs.forEach((...
hsiaoching/cdap
cdap-ui/app/cdap/components/ConfigurationGroup/index.tsx
TypeScript
FunctionDeclaration
function ConfigurationGroup(props) { return ( <ThemeWrapper> <StyledConfigurationGroup {...props} /> </ThemeWrapper> ); }
hsiaoching/cdap
cdap-ui/app/cdap/components/ConfigurationGroup/index.tsx
TypeScript
ArrowFunction
(theme): StyleRules => { return { group: { marginBottom: '20px', }, groupTitle: { marginBottom: '15px', }, h2Title: { ...h2Styles(theme), marginBottom: 0, }, groupSubTitle: { color: theme.palette.grey[200], }, }; }
hsiaoching/cdap
cdap-ui/app/cdap/components/ConfigurationGroup/index.tsx
TypeScript
ArrowFunction
({ widgetJson, pluginProperties, values, inputSchema, onChange, disabled, classes, errors, validateProperties, }) => { const [configurationGroups, setConfigurationGroups] = React.useState([]); const referenceValueForUnMount = React.useRef<{ configurationGroups?: IFilteredConfigurationGroup[];...
hsiaoching/cdap
cdap-ui/app/cdap/components/ConfigurationGroup/index.tsx
TypeScript
ArrowFunction
() => { if (!pluginProperties) { return; } const widgetConfigurationGroup = objectQuery(widgetJson, 'configuration-groups'); const widgetOutputs = objectQuery(widgetJson, 'outputs'); const processedConfigurationGroup = processConfigurationGroups( pluginProperties, widgetConfigura...
hsiaoching/cdap
cdap-ui/app/cdap/components/ConfigurationGroup/index.tsx
TypeScript
ArrowFunction
() => { let newFilteredConfigurationGroup; try { newFilteredConfigurationGroup = filterByCondition( configurationGroups, widgetJson, pluginProperties, values ); } catch (e) { newFilteredConfigurationGroup = configurationGroups; // tslint:disable:no-c...
hsiaoching/cdap
cdap-ui/app/cdap/components/ConfigurationGroup/index.tsx
TypeScript
ArrowFunction
() => { return () => { const newValues = { ...referenceValueForUnMount.current.values }; const configGroups = referenceValueForUnMount.current.configurationGroups; if (configGroups) { configGroups.forEach((group) => { group.properties.forEach((property) => { if (prop...
hsiaoching/cdap
cdap-ui/app/cdap/components/ConfigurationGroup/index.tsx
TypeScript
ArrowFunction
() => { const newValues = { ...referenceValueForUnMount.current.values }; const configGroups = referenceValueForUnMount.current.configurationGroups; if (configGroups) { configGroups.forEach((group) => { group.properties.forEach((property) => { if (property.show === false...
hsiaoching/cdap
cdap-ui/app/cdap/components/ConfigurationGroup/index.tsx
TypeScript
ArrowFunction
(group) => { group.properties.forEach((property) => { if (property.show === false) { delete newValues[property.name]; } }); }
hsiaoching/cdap
cdap-ui/app/cdap/components/ConfigurationGroup/index.tsx
TypeScript
ArrowFunction
(property) => { if (property.show === false) { delete newValues[property.name]; } }
hsiaoching/cdap
cdap-ui/app/cdap/components/ConfigurationGroup/index.tsx
TypeScript
ArrowFunction
() => { setGroups(constructGroups); }
hsiaoching/cdap
cdap-ui/app/cdap/components/ConfigurationGroup/index.tsx
TypeScript
ArrowFunction
() => { setOrphanErrors(constructOrphanErrors); }
hsiaoching/cdap
cdap-ui/app/cdap/components/ConfigurationGroup/index.tsx
TypeScript
ArrowFunction
(group, i) => { if (group.show === false) { return null; } return ( <div key={`${group.label}-${i}`}
hsiaoching/cdap
cdap-ui/app/cdap/components/ConfigurationGroup/index.tsx
TypeScript
ArrowFunction
(property, j) => { if (property.show === false) { return null; } // Hiding all plugin functions if pipeline is deployed if ( disabled && property.hasOwnProperty('widget-category') && property['widget...
hsiaoching/cdap
cdap-ui/app/cdap/components/ConfigurationGroup/index.tsx
TypeScript
ArrowFunction
(errs: IErrorObj[]) => { errs.forEach((error) => { usedMessages.add(error.msg); }); }
hsiaoching/cdap
cdap-ui/app/cdap/components/ConfigurationGroup/index.tsx
TypeScript
ArrowFunction
(error) => { usedMessages.add(error.msg); }
hsiaoching/cdap
cdap-ui/app/cdap/components/ConfigurationGroup/index.tsx
TypeScript
ArrowFunction
(propName) => { if (propName === 'orphanErrors') { errors.orphanErrors.forEach((orphanError: IErrorObj) => { // Making use the error msg has not been displayed contextually // elsewhere. if (!usedMessages.has(orphanError.msg)) { orphanedErrors.add(orp...
hsiaoching/cdap
cdap-ui/app/cdap/components/ConfigurationGroup/index.tsx
TypeScript
ArrowFunction
(orphanError: IErrorObj) => { // Making use the error msg has not been displayed contextually // elsewhere. if (!usedMessages.has(orphanError.msg)) { orphanedErrors.add(orphanError.msg); } }
hsiaoching/cdap
cdap-ui/app/cdap/components/ConfigurationGroup/index.tsx
TypeScript
ArrowFunction
(error: IErrorObj) => { if (!usedMessages.has(error.msg)) { // If any error is not displayed contextually, and the error message // is not used by any other field, mark the error as orphan. orphanedErrors.add(error.msg); } }
hsiaoching/cdap
cdap-ui/app/cdap/components/ConfigurationGroup/index.tsx
TypeScript
ArrowFunction
(error: string) => ( <li>{error}</li> )
hsiaoching/cdap
cdap-ui/app/cdap/components/ConfigurationGroup/index.tsx
TypeScript
InterfaceDeclaration
export interface IConfigurationGroupProps extends WithStyles<typeof styles> { widgetJson?: IWidgetJson; pluginProperties: PluginProperties; values: Record<string, string>; inputSchema?: any; disabled?: boolean; onChange?: (values: Record<string, string>) => void; errors: { [property: string]: IErrorO...
hsiaoching/cdap
cdap-ui/app/cdap/components/ConfigurationGroup/index.tsx
TypeScript
ArrowFunction
type => Coffee
SandraBayabos/coffee-app-nestjs
src/coffees/entities/flavour.entity.ts
TypeScript
ArrowFunction
coffee => coffee.flavours
SandraBayabos/coffee-app-nestjs
src/coffees/entities/flavour.entity.ts
TypeScript
ClassDeclaration
@Entity() export class Flavour { @PrimaryGeneratedColumn() id: number; @Column() name: string; @ManyToMany(type => Coffee, coffee => coffee.flavours) coffees: Coffee[] }
SandraBayabos/coffee-app-nestjs
src/coffees/entities/flavour.entity.ts
TypeScript
InterfaceDeclaration
// eslint-disable-next-line @typescript-eslint/no-empty-interface,@typescript-eslint/no-unused-vars export interface AugmentedSubmittables<ApiType extends ApiTypes> { }
AxiaSolar-Js/api
packages/api/src/types/submittable.ts
TypeScript
InterfaceDeclaration
export interface SubmittableExtrinsicFunction<ApiType extends ApiTypes, A extends AnyTuple = AnyTuple> extends CallBase<A> { (...params: any[]): SubmittableExtrinsic<ApiType>; }
AxiaSolar-Js/api
packages/api/src/types/submittable.ts
TypeScript
InterfaceDeclaration
export interface SubmittableModuleExtrinsics<ApiType extends ApiTypes> { // only with is<Type> augmentation [index: string]: SubmittableExtrinsicFunction<ApiType>; // | AugmentedIsSubmittable<ApiType, AnyTuple>; }
AxiaSolar-Js/api
packages/api/src/types/submittable.ts
TypeScript
TypeAliasDeclaration
export type AugmentedSubmittable<T extends AnyFunction, A extends AnyTuple = AnyTuple> = T & CallBase<A>;
AxiaSolar-Js/api
packages/api/src/types/submittable.ts
TypeScript
ArrowFunction
async ({ where }) => { // TODO: in multi-tenant app, you must add validation to ensure correct tenant const intern = await db.intern.findFirst({ where, select: { interests: true, jobApplications: true, user: true, id: true, bio: true, oneliner: true, userId: true, ...
0xsamrath/internnova
app/interns/queries/getIntern.ts
TypeScript
ClassDeclaration
export class ExperimentalAssayViewValidator implements Validator<ExperimentalAssayView> { static INSTANCE = new ExperimentalAssayViewValidator(); generalV = GeneralDescValidator.INSTANCE; contribV = ContributionDescValidator.INSTANCE; bioV = SimpleBioDescValidator.INSTANCE; protected constructor() { } ...
SynthSys/BioDare2-UI
src/app/dom/repo/exp/experimental-assay-view.validator.ts
TypeScript
MethodDeclaration
validate(obj: ExperimentalAssayView): string[] { let err: string[] = []; err = err.concat(this.generalV.validate(obj.generalDesc), this.contribV.validate(obj.contributionDesc), this.bioV.validate(obj)); return err; }
SynthSys/BioDare2-UI
src/app/dom/repo/exp/experimental-assay-view.validator.ts
TypeScript
ArrowFunction
async (): Promise<RepositoryInfo[]> => { if (process.env.NODE_ENV === 'development') { return repoMock } const info = getUserInfoToLocalStorage() if (!info) { return [] } const { name, token } = info const query = `query { user(login: ${name}) { repositories(last: 100) { edge...
JaeYeopHan/octodirect
src/service/github-repository.service.ts
TypeScript
ArrowFunction
({ node }: { node: RepositoryInfo }) => node
JaeYeopHan/octodirect
src/service/github-repository.service.ts
TypeScript
InterfaceDeclaration
export interface RepositoryInfo { id: string name: string url: string }
JaeYeopHan/octodirect
src/service/github-repository.service.ts
TypeScript
ArrowFunction
details => details.post
a-kalmykov/ionic-typeorm
sample/sample2-one-to-one/entity/Post.ts
TypeScript
ArrowFunction
image => image.post
a-kalmykov/ionic-typeorm
sample/sample2-one-to-one/entity/Post.ts
TypeScript
ArrowFunction
metadata => metadata.post
a-kalmykov/ionic-typeorm
sample/sample2-one-to-one/entity/Post.ts
TypeScript
ArrowFunction
information => information.post
a-kalmykov/ionic-typeorm
sample/sample2-one-to-one/entity/Post.ts
TypeScript
ArrowFunction
author => author.post
a-kalmykov/ionic-typeorm
sample/sample2-one-to-one/entity/Post.ts
TypeScript
ClassDeclaration
@Entity("sample2_post") export class Post { @PrimaryGeneratedColumn() id: number; @Column() title: string; @Column() text: string; // post has relation with category, however inverse relation is not set (category does not have relation with post set) @OneToOne(type => PostCategory, ...
a-kalmykov/ionic-typeorm
sample/sample2-one-to-one/entity/Post.ts
TypeScript
MethodDeclaration
ngOnInit() { this.model = [ { label: 'Home', items:[ {label: 'Dashboard',icon: 'pi pi-fw pi-home', routerLink: ['/']} ] }, { label: '管理', items: [ {label: ...
primochen/sakai-ng
src/app/app.menu.component.ts
TypeScript
MethodDeclaration
onKeydown(event: KeyboardEvent) { const nodeElement = (<HTMLDivElement> event.target); if (event.code === 'Enter' || event.code === 'Space') { nodeElement.click(); event.preventDefault(); } }
primochen/sakai-ng
src/app/app.menu.component.ts
TypeScript
InterfaceDeclaration
export interface GetExifReqBody { imgUrl: string; }
latusikl/PhotoExifEditor
frontend/src/app/model/getExifReqBody.ts
TypeScript
FunctionDeclaration
/** * slug_cs will take envVar and then : * - replace any character by `-` except `0-9`, `a-z`, `.`, and `_` * - remove leading and trailing `-` character * - limit the string size to 63 characters * @param envVar to be slugged */ export function slug_cs(envVar: string): string { return trailHyphen(replaceAnyNo...
jbcpollak/github-slug-action
src/slug.ts
TypeScript
FunctionDeclaration
/** * slug will take envVar and then : * - put the variable content in lower case * - replace any character by `-` except `0-9`, `a-z`, `.`, and `_` * - remove leading and trailing `-` character * - limit the string size to 63 characters * @param envVar to be slugged */ export function slug(envVar: string): stri...
jbcpollak/github-slug-action
src/slug.ts
TypeScript
FunctionDeclaration
/** * slugref_cs will take envVar and then : * - remove refs/(heads|tags|pull)/ * - replace any character by `-` except `0-9`, `a-z`, `.`, and `_` * - remove leading and trailing `-` character * - limit the string size to 63 characters * @param envVar to be slugged */ export function slugref_cs(envVar: string): ...
jbcpollak/github-slug-action
src/slug.ts
TypeScript
FunctionDeclaration
/** * slugref will take envVar and then : * - remove refs/(heads|tags|pull)/ * - put the variable content in lower case * - replace any character by `-` except `0-9`, `a-z`, `.`, and `_` * - remove leading and trailing `-` character * - limit the string size to 63 characters * @param envVar to be slugged */ exp...
jbcpollak/github-slug-action
src/slug.ts
TypeScript
FunctionDeclaration
/** * slugurl_cs will take envVar and then : * - replace any character by `-` except `0-9`, `a-z` * - remove leading and trailing `-` character * - limit the string size to 63 characters * @param envVar to be slugged */ export function slugurl_cs(envVar: string): string { return slug_cs(replaceAnyNonUrlCharacte...
jbcpollak/github-slug-action
src/slug.ts
TypeScript
FunctionDeclaration
/** * slugurl will take envVar and then : * - put the variable content in lower case * - replace any character by `-` except `0-9`, `a-z` * - remove leading and trailing `-` character * - limit the string size to 63 characters * @param envVar to be slugged */ export function slugurl(envVar: string): string { r...
jbcpollak/github-slug-action
src/slug.ts
TypeScript
FunctionDeclaration
/** * slugurlref_cs will take envVar and then : * - remove refs/(heads|tags|pull)/ * - replace any character by `-` except `0-9`, `a-z` * - remove leading and trailing `-` character * - limit the string size to 63 characters * @param envVar to be slugged */ export function slugurlref_cs(envVar: string): string {...
jbcpollak/github-slug-action
src/slug.ts
TypeScript
FunctionDeclaration
/** * slugurlref will take envVar and then : * - remove refs/(heads|tags|pull)/ * - put the variable content in lower case * - replace any character by `-` except `0-9`, `a-z` * - remove leading and trailing `-` character * - limit the string size to 63 characters * @param envVar to be slugged */ export functio...
jbcpollak/github-slug-action
src/slug.ts
TypeScript
FunctionDeclaration
function trailHyphen(envVar: string): string { return envVar.replace(RegExp('^-*', 'g'), '').replace(RegExp('-*$', 'g'), '') }
jbcpollak/github-slug-action
src/slug.ts
TypeScript
FunctionDeclaration
function replaceAnyNonAlphanumericCharacter(envVar: string): string { return envVar.replace(RegExp('[^a-zA-Z0-9._]', 'g'), '-') }
jbcpollak/github-slug-action
src/slug.ts
TypeScript
FunctionDeclaration
function replaceAnyNonUrlCharactersWithHyphen(envVar: string): string { return envVar.replace(RegExp('[._]', 'g'), '-') }
jbcpollak/github-slug-action
src/slug.ts
TypeScript
FunctionDeclaration
function removeRef(envVar: string): string { return envVar.replace(RegExp('^refs/(heads|tags|pull)/'), '') }
jbcpollak/github-slug-action
src/slug.ts
TypeScript
ArrowFunction
user => { if(!user) { return null; } // Loads the post data if(id) { return this.db.document<PostData>(`users/${user.uid}/feed/${id}`).get(); } // Creates a new unique document id const newId = this.db.col(`users/${user.uid}/feed`).doc().id; // Returns an empty post ...
AndreiYa/wizdm
wizdm/src/app/pages/explore/feed/edit/edit-resolver.service.ts
TypeScript
ClassDeclaration
/** Resolves the post document */ @Injectable() export class PostResolver implements Resolve<PostData> { constructor(private auth: AuthService, private db: DatabaseService) { } /** Resolves the post content loading the requested id */ public resolve(route: ActivatedRouteSnapshot): Observable<PostData> { //...
AndreiYa/wizdm
wizdm/src/app/pages/explore/feed/edit/edit-resolver.service.ts
TypeScript
MethodDeclaration
/** Resolves the post content loading the requested id */ public resolve(route: ActivatedRouteSnapshot): Observable<PostData> { // Resolves the id from the query parameter const id = route.queryParamMap.get('id'); return this.auth.user$.pipe( take(1), switchMap( user => { if(!user) { return...
AndreiYa/wizdm
wizdm/src/app/pages/explore/feed/edit/edit-resolver.service.ts
TypeScript
ArrowFunction
options => source => source.pipe( map(data => { const hasValidConfig = Object.keys(options.fields).find( name => options.fields[name].operation === GroupByOperationID.groupBy ); if (!hasValidConfig) { return data; } const processed: DataFrame[] = ...
3wWqj/grafana
packages/grafana-data/src/transformations/transformers/groupBy.ts
TypeScript
ArrowFunction
source => source.pipe( map(data => { const hasValidConfig = Object.keys(options.fields).find( name => options.fields[name].operation === GroupByOperationID.groupBy ); if (!hasValidConfig) { return data; } const processed: DataFrame[] = []; ...
3wWqj/grafana
packages/grafana-data/src/transformations/transformers/groupBy.ts
TypeScript
ArrowFunction
data => { const hasValidConfig = Object.keys(options.fields).find( name => options.fields[name].operation === GroupByOperationID.groupBy ); if (!hasValidConfig) { return data; } const processed: DataFrame[] = []; for (const frame of data) { ...
3wWqj/grafana
packages/grafana-data/src/transformations/transformers/groupBy.ts
TypeScript
ArrowFunction
name => options.fields[name].operation === GroupByOperationID.groupBy
3wWqj/grafana
packages/grafana-data/src/transformations/transformers/groupBy.ts
TypeScript
ArrowFunction
field => field.values.get(rowIndex)
3wWqj/grafana
packages/grafana-data/src/transformations/transformers/groupBy.ts
TypeScript
ArrowFunction
(field: Field, options: GroupByTransformerOptions): boolean => { const fieldName = getFieldDisplayName(field); return options?.fields[fieldName]?.operation === GroupByOperationID.groupBy; }
3wWqj/grafana
packages/grafana-data/src/transformations/transformers/groupBy.ts
TypeScript
ArrowFunction
(field: Field, options: GroupByTransformerOptions): boolean => { const fieldName = getFieldDisplayName(field); return ( options?.fields[fieldName]?.operation === GroupByOperationID.aggregate && Array.isArray(options?.fields[fieldName].aggregations) && options?.fields[fieldName].aggregations.length > 0 ...
3wWqj/grafana
packages/grafana-data/src/transformations/transformers/groupBy.ts
TypeScript
ArrowFunction
(aggregation: string, sourceField: Field, targetField: Field): FieldType => { switch (aggregation) { case ReducerID.allIsNull: return FieldType.boolean; case ReducerID.last: case ReducerID.lastNotNull: case ReducerID.first: case ReducerID.firstNotNull: return sourceField.type; def...
3wWqj/grafana
packages/grafana-data/src/transformations/transformers/groupBy.ts
TypeScript
InterfaceDeclaration
export interface GroupByFieldOptions { aggregations: ReducerID[]; operation: GroupByOperationID | null; }
3wWqj/grafana
packages/grafana-data/src/transformations/transformers/groupBy.ts
TypeScript
InterfaceDeclaration
export interface GroupByTransformerOptions { fields: Record<string, GroupByFieldOptions>; }
3wWqj/grafana
packages/grafana-data/src/transformations/transformers/groupBy.ts
TypeScript
EnumDeclaration
export enum GroupByOperationID { aggregate = 'aggregate', groupBy = 'groupby', }
3wWqj/grafana
packages/grafana-data/src/transformations/transformers/groupBy.ts
TypeScript
ClassDeclaration
class ModifyProperties { private projectConfig: egret.EgretProperty constructor() { } initProperties() { var projectPath = file.joinPath(egret.args.projectDir, "egretProperties.json"); this.projectConfig = JSON.parse(file.read(projectPath)); } save(version?: string) { ...
taoabc/dragonbones-runtime-build
.cache/egret-core-5.1.0/tools/commands/upgrade/ModifyProperties.ts
TypeScript
MethodDeclaration
initProperties() { var projectPath = file.joinPath(egret.args.projectDir, "egretProperties.json"); this.projectConfig = JSON.parse(file.read(projectPath)); }
taoabc/dragonbones-runtime-build
.cache/egret-core-5.1.0/tools/commands/upgrade/ModifyProperties.ts
TypeScript
MethodDeclaration
save(version?: string) { if (version) { this.projectConfig.egret_version = version; } var projectPath = file.joinPath(egret.args.projectDir, "egretProperties.json"); var content = JSON.stringify(this.projectConfig, null, "\t"); file.save(projectPath, content); }
taoabc/dragonbones-runtime-build
.cache/egret-core-5.1.0/tools/commands/upgrade/ModifyProperties.ts
TypeScript
MethodDeclaration
upgradeModulePath() { let config = this.projectConfig for (let m of config.modules) { if (!m.path) { m.path = '${EGRET_APP_DATA}/' + config.egret_version; } } }
taoabc/dragonbones-runtime-build
.cache/egret-core-5.1.0/tools/commands/upgrade/ModifyProperties.ts
TypeScript
InterfaceDeclaration
/** * <p>Contains the response to a successful <a>CreatePolicy</a> request. </p> */ export interface CreatePolicyOutput extends __aws_sdk_types.MetadataBearer { /** * <p>A structure containing details about the new policy.</p> */ Policy?: _UnmarshalledPolicy; /** * Metadata about the response received...
Dylan0916/aws-sdk-js-v3
clients/browser/client-iam-browser/types/CreatePolicyOutput.ts
TypeScript
ClassDeclaration
@NgModule({ declarations: [ AppComponent, FilterComponent, ScatterplotPatrimonioComponent, ResumoCandidatoComponent, JoyplotEstadosComponent, FactSheetComponent, AboutComponent, HomeComponent, ReadmeComponent, Top10Component, NoDataDialogComponent ], imports: [ B...
analytics-ufcg/empenhados-patrimonio-app
src/app/app.module.ts
TypeScript
FunctionDeclaration
/** * Create macro plugin. * * For example, * ```typescript * // vite.config.ts * * export default defineConfig({ * plugins: [ * createMacroPlugin({ ... }) * .use(provideSomeMacros({ ... })) * ], * }) * ``` */ export function createMacroPlugin( /* istanbul ignore next */ options: MacroPl...
typed-macro/typed-macro
packages/wrapper-vite/src/plugin/plugin.ts
TypeScript
ArrowFunction
async (config) => { // create env const env = createEnvContext( dev ?? !config.isProduction, ssr ?? !!config.build.ssr, watcherOptions ) // init runtime runtime = createRuntime(env, { filter: { exclude, include }, transformer: { maxTraversals, pars...
typed-macro/typed-macro
packages/wrapper-vite/src/plugin/plugin.ts
TypeScript
ArrowFunction
(provider) => { runtime!.appendProvider(provider) }
typed-macro/typed-macro
packages/wrapper-vite/src/plugin/plugin.ts
TypeScript
ArrowFunction
async (server) => { ;(runtime!.internal.env.modules as InternalModules).__setServer(server) }
typed-macro/typed-macro
packages/wrapper-vite/src/plugin/plugin.ts
TypeScript
ArrowFunction
(id) => runtime?.resolveId(id)
typed-macro/typed-macro
packages/wrapper-vite/src/plugin/plugin.ts
TypeScript
ArrowFunction
(id) => runtime?.load(id)
typed-macro/typed-macro
packages/wrapper-vite/src/plugin/plugin.ts
TypeScript
ArrowFunction
async (code, id) => { if (!(await runtime?.filter(id))) return const result = await runtime?.transform(code, id) return result && { code: result, map: null } }
typed-macro/typed-macro
packages/wrapper-vite/src/plugin/plugin.ts
TypeScript
ArrowFunction
async () => { await runtime!.stop() }
typed-macro/typed-macro
packages/wrapper-vite/src/plugin/plugin.ts
TypeScript
TypeAliasDeclaration
export type MacroPlugin = Plugin & { /** * Register macro providers to this macro manager so that * all macros in providers and plugins share the same runtime. * * For macro plugins: * > Some options like `maxTraversals` or `typesPath` will be overridden by * > manager's, `parserPlugins` will be ...
typed-macro/typed-macro
packages/wrapper-vite/src/plugin/plugin.ts
TypeScript
TypeAliasDeclaration
export type MacroPluginOptions = FilterOptions & TransformerOptions & { /** * The path of the automatically generated type declaration file. * * @default '<projectDir>/macros.d.ts' */ typesPath?: string /** * Is in dev mode. * * @default mode !== 'production' * @s...
typed-macro/typed-macro
packages/wrapper-vite/src/plugin/plugin.ts
TypeScript
MethodDeclaration
use(...sources) { uninstantiatedProviders.push(...sources) return plugin }
typed-macro/typed-macro
packages/wrapper-vite/src/plugin/plugin.ts
TypeScript
FunctionDeclaration
export default function TVSeriesSearch({query, onClick}: TVSeriesSearchProps) { const classes = useStyles(); const [shows, setShows] = React.useState<Array<TVSeriesPreview>>([]); React.useEffect(()=> { if(query) { fetchShowsSearch(query) .then(foundShows=> setShows(foundShows)); return; ...
Stuff7/react-portfolio-frontend
src/components/TVSM/TVSeriesSearch.tsx
TypeScript
ArrowFunction
({palette})=> ({ results: { margin: "20px 0", display: "flex", overflow: "auto", }, })
Stuff7/react-portfolio-frontend
src/components/TVSM/TVSeriesSearch.tsx
TypeScript
ArrowFunction
()=> { if(query) { fetchShowsSearch(query) .then(foundShows=> setShows(foundShows)); return; } setShows([]); }
Stuff7/react-portfolio-frontend
src/components/TVSM/TVSeriesSearch.tsx
TypeScript
ArrowFunction
foundShows=> setShows(foundShows)
Stuff7/react-portfolio-frontend
src/components/TVSM/TVSeriesSearch.tsx
TypeScript
ArrowFunction
show=> <Preview key
Stuff7/react-portfolio-frontend
src/components/TVSM/TVSeriesSearch.tsx
TypeScript
InterfaceDeclaration
interface TVSeriesSearchProps { query: string; onClick: (seriesID: number)=> void; }
Stuff7/react-portfolio-frontend
src/components/TVSM/TVSeriesSearch.tsx
TypeScript
ArrowFunction
(first, second) => _.date.sortNewToOld(first.expiresDate, second.expiresDate)
levibostian/dollabill-apple
app/parse/common/auto_renewable_subscription/subscription.ts
TypeScript
ArrowFunction
(transaction) => transaction.offerCodeRefName
levibostian/dollabill-apple
app/parse/common/auto_renewable_subscription/subscription.ts
TypeScript
ArrowFunction
(transaction) => transaction.offerCodeRefName!
levibostian/dollabill-apple
app/parse/common/auto_renewable_subscription/subscription.ts
TypeScript
ArrowFunction
(transaction) => transaction.promotionalOfferId
levibostian/dollabill-apple
app/parse/common/auto_renewable_subscription/subscription.ts
TypeScript
ArrowFunction
(transaction) => transaction.promotionalOfferId!
levibostian/dollabill-apple
app/parse/common/auto_renewable_subscription/subscription.ts
TypeScript
ClassDeclaration
/** * Creates a parsed subscription from a collection of parsed transactions. * * @internal */ export class ParsedSubscription { public allTransactions: AutoRenewableSubscriptionTransaction[] public latestExpireDateTransaction: AutoRenewableSubscriptionTransaction public renewalInfo?: ApplePendingRenewalInfo ...
levibostian/dollabill-apple
app/parse/common/auto_renewable_subscription/subscription.ts
TypeScript
MethodDeclaration
parseSubscription(): AutoRenewableSubscription { const issues = this.issues() return { currentProductId: this.latestExpireDateTransaction.productId, originalTransactionId: this.originalTransactionId, subscriptionGroup: this.latestExpireDateTransaction.subscriptionGroupId, isInFreeT...
levibostian/dollabill-apple
app/parse/common/auto_renewable_subscription/subscription.ts
TypeScript
MethodDeclaration
usedOfferCodes(): string[] { const set = new Set(this.allTransactions .filter((transaction) => transaction.offerCodeRefName) .map((transaction) => transaction.offerCodeRefName!)) return [...set] }
levibostian/dollabill-apple
app/parse/common/auto_renewable_subscription/subscription.ts
TypeScript