type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
ArrowFunction |
(
props: DashboardHeaderProps,
ref: React.Ref<HTMLDivElement>
) => {
const { asPublicHeader = false, subHeader, className, ...otherProps } = props;
const classes = useStyles();
return (
<header
ref={ref}
className={c(className, classes.root, {
[classes.publicHeader]: asPublicHeader
... | porser/porser-client | components/container/DashboardHeader/DashboardHeader.tsx | TypeScript |
InterfaceDeclaration |
interface DashboardHeaderBaseProps {
className?: string;
asPublicHeader?: boolean;
subHeader?: JSX.Element;
} | porser/porser-client | components/container/DashboardHeader/DashboardHeader.tsx | TypeScript |
TypeAliasDeclaration |
type DashboardHeaderProps = Omit<
React.ComponentPropsWithRef<"div">,
keyof DashboardHeaderBaseProps
> &
DashboardHeaderBaseProps; | porser/porser-client | components/container/DashboardHeader/DashboardHeader.tsx | TypeScript |
MethodDeclaration |
c(className, classes | porser/porser-client | components/container/DashboardHeader/DashboardHeader.tsx | TypeScript |
ArrowFunction |
({
size = 's',
color,
customSize,
}: IconProps): JSX.Element => (
<div
className={`fds-icon fds-icon--${size}` | clew-cbi/form-design-system | src/icons/react/MAIcon.tsx | TypeScript |
ArrowFunction |
() => log(`Running at http://localhost:${port}`) | patricklatorre/typescript-mvc-starter | server/src/index.ts | TypeScript |
FunctionDeclaration | /**
* @ignore Exclude from docs
* @todo Description
*/
export declare function fromArray<A>(array: Array<A>): Iterator<A>; | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
FunctionDeclaration | /**
* @ignore Exclude from docs
* @todo Description
*/
export declare function length<A>(iter: Iterator<A>): number; | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
FunctionDeclaration | /**
* @ignore Exclude from docs
* @todo Description
*/
export declare function toArray<A>(iter: Iterator<A>): Array<A>; | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
FunctionDeclaration | /**
* [iter description]
*
* @ignore Exclude from docs
* @todo Description
* @type {Iterator<A>}
*/
export declare function eachContinue<A>(iter: Iterator<A>, fn: (value: A) => boolean): void; | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
FunctionDeclaration | /**
* [iter description]
*
* @ignore Exclude from docs
* @todo Description
* @type {Iterator<A>}
*/
export declare function each<A>(iter: Iterator<A>, fn: (value: A) => void): void; | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
FunctionDeclaration | /**
* [iter description]
*
* @ignore Exclude from docs
* @todo Description
* @type {Iterator<A>}
*/
export declare function sort<A>(iter: Iterator<A>, fn: (left: A, right: A) => Ordering): Iterator<A>; | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
FunctionDeclaration | /**
* [A description]
*
* @ignore Exclude from docs
* @todo Description
* @type {[type]}
*/
export declare function map<A, B>(iter: Iterator<A>, fn: (value: A) => B): Iterator<B>; | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
FunctionDeclaration | /**
* [iter description]
*
* @ignore Exclude from docs
* @todo Description
* @type {Iterator<A>}
*/
export declare function filter<A>(iter: Iterator<A>, fn: (value: A) => boolean): Iterator<A>; | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
FunctionDeclaration | /**
* @ignore Exclude from docs
* @todo Description
*/
export declare function concat<A>(...args: Array<Iterator<A>>): Iterator<A>; | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
FunctionDeclaration | /**
* @ignore Exclude from docs
* @todo Description
*/
export declare function flatten<A>(iter: Iterator<Iterator<A>>): Iterator<A>; | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
FunctionDeclaration | /**
* [number description]
*
* @ignore Exclude from docs
* @todo Description
* @type {[type]}
*/
export declare function indexed<A>(iter: Iterator<A>): Iterator<[number, A]>; | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
FunctionDeclaration | /**
* [iter description]
*
* @ignore Exclude from docs
* @todo Description
* @type {Iterator<A>}
*/
export declare function findIndex<A>(iter: Iterator<A>, matches: (value: A) => boolean): number; | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
FunctionDeclaration | /**
* [iter description]
*
* @ignore Exclude from docs
* @todo Description
* @type {Iterator<A>}
*/
export declare function find<A>(iter: Iterator<A>, matches: (value: A) => boolean): A | undefined; | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
FunctionDeclaration | /**
* [A description]
*
* @ignore Exclude from docs
* @todo Description
* @type {[type]}
*/
export declare function findMap<A, B>(iter: Iterator<A>, matches: (value: A) => B | null): B | undefined; | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
FunctionDeclaration | /**
* [iter description]
*
* @ignore Exclude from docs
* @todo Description
* @type {Iterator<A>}
*/
export declare function contains<A>(iter: Iterator<A>, matches: (value: A) => boolean): boolean; | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
FunctionDeclaration | /**
* [A description]
*
* @ignore Exclude from docs
* @todo Description
* @type {[type]}
*/
export declare function foldl<A, B>(iter: Iterator<A>, init: B, fn: (state: B, value: A) => B): B; | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
FunctionDeclaration | /**
* [min description]
*
* @ignore Exclude from docs
* @todo Verify that this works correctly
* @todo Description
* @param {Iterator<number>} a [description]
* @return {number} [description]
*/
export declare function min(a: Iterator<number>): number | null; | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
FunctionDeclaration | /**
* [max description]
*
* @ignore Exclude from docs
* @todo Verify that this works correctly
* @todo Description
* @param {Iterator<number>} a [description]
* @return {number} [description]
*/
export declare function max(a: Iterator<number>): number | null; | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
FunctionDeclaration | /**
* [join description]
*
* @ignore Exclude from docs
* @todo Description
* @param {Iterator<string>} iter [description]
* @param {string = ""} separator [description]
* @return {string} [description]
*/
export declare function join(iter: Iterator<string>, separator?: string... | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
ClassDeclaration | /**
* @ignore Exclude from docs
* @todo Description
*/
export declare class ListIterator<T extends IClone<T>> {
private _listCopy;
private _create;
list: Iterable<T>;
createNewItems: boolean;
/**
* Constructor
*
* @param {Iterable<T>} list [description]
* @param {() => ... | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
InterfaceDeclaration | /**
* ============================================================================
* UTILITY FUNCTIONS
* ============================================================================
* @hidden
*/
/**
* @ignore Exclude from docs
* @todo Description
*/
export interface Iterator<A> {
(push: (value: A) => boolea... | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
InterfaceDeclaration | /**
* @ignore Exclude from docs
* @todo Description
*/
export interface Iterable<A> {
iterator(): Iterator<A>;
} | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
MethodDeclaration |
reset(): void; | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
MethodDeclaration |
clear(): void; | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
MethodDeclaration |
getFirst(): $type.Optional<T>; | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
MethodDeclaration |
getLast(): $type.Optional<T>; | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
MethodDeclaration |
find(fn: (value: T) => boolean): $type.Optional<T>; | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
MethodDeclaration |
removeItem(item: T): boolean; | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
MethodDeclaration |
protected returnItem(index: number): $type.Optional<T>; | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
MethodDeclaration |
iterator(): Iterator<T>; | brunnomatheuus/ProjetoInova-Web | node_modules/@amcharts/amcharts4/.internal/core/utils/Iterator.d.ts | TypeScript |
ArrowFunction |
(done) => {
const payload = {};
const resources = [{}, {}, {}];
const result = {};
const config: RedundancyConfig = {
resources,
index: 0,
timeout: 200,
rotate: 50,
random: false,
dataAfterTimeout: false,
};
// Tracking
let isSync = true;
const startTime = Date.now();
let sentQuery... | cyberalien/redundancy | tests/30_advanced_queries_test.ts | TypeScript |
ArrowFunction |
(resource, queryPayload, queryItem) => {
expect(isSync).to.be.equal(false);
expect(queryPayload).to.be.equal(payload);
// Query should be executed 3 times
expect(sentQuery < 3).to.be.equal(true);
expect(resource).to.be.equal(resources[sentQuery]);
// Check status
expect(queryItem.getQuery... | cyberalien/redundancy | tests/30_advanced_queries_test.ts | TypeScript |
ArrowFunction |
(): void => {
done(
'Abort should have not been called for first item'
);
} | cyberalien/redundancy | tests/30_advanced_queries_test.ts | TypeScript |
ArrowFunction |
() => {
// Status should not have changed
const status = getStatus();
expect(status.queriesSent).to.be.equal(1);
expect(status.queriesPending).to.be.equal(1);
// Fail
queryItem.done(void 0, true);
} | cyberalien/redundancy | tests/30_advanced_queries_test.ts | TypeScript |
ArrowFunction |
(): void => {
done(
'Abort should have not been called for second item'
);
} | cyberalien/redundancy | tests/30_advanced_queries_test.ts | TypeScript |
ArrowFunction |
(): void => {
// This item should be aborted, but only once
expect(itemAborted).to.be.equal(false);
expect(sentQuery).to.be.equal(3);
itemAborted = true;
} | cyberalien/redundancy | tests/30_advanced_queries_test.ts | TypeScript |
ArrowFunction |
(data, error) => {
// Make sure queries were sent
expect(sentQuery).to.be.equal(3);
// Third query should have been aborted
expect(itemAborted).to.be.equal(true);
// Validate data
expect(data).to.be.equal(result);
expect(error).to.be.equal(void 0);
// Check status
const status = ... | cyberalien/redundancy | tests/30_advanced_queries_test.ts | TypeScript |
ArrowFunction |
(done) => {
const payload = {};
const resources = [{}, {}];
const result1 = {};
const result2 = {};
const config: RedundancyConfig = {
resources,
index: 0,
timeout: 200,
rotate: 50,
random: false,
dataAfterTimeout: false,
};
// Tracking
let isSync = true;
const startTime = Date.now... | cyberalien/redundancy | tests/30_advanced_queries_test.ts | TypeScript |
ArrowFunction |
(resource, queryPayload, queryItem) => {
expect(isSync).to.be.equal(false);
expect(queryPayload).to.be.equal(payload);
// Query should be executed 2 times
expect(sentQuery < 2).to.be.equal(true);
expect(resource).to.be.equal(resources[sentQuery]);
// Check status
expect(queryItem.getQuery... | cyberalien/redundancy | tests/30_advanced_queries_test.ts | TypeScript |
ArrowFunction |
(): void => {
expect(itemAborted).to.be.equal(false);
itemAborted = true;
} | cyberalien/redundancy | tests/30_advanced_queries_test.ts | TypeScript |
ArrowFunction |
() => {
// Check status
const status = getStatus();
expect(status.status).to.be.equal('pending');
expect(status.queriesSent).to.be.equal(2);
expect(status.queriesPending).to.be.equal(2);
firstItem.done(result1);
// Complete second item in 30 ms
setTimeout(() =>... | cyberalien/redundancy | tests/30_advanced_queries_test.ts | TypeScript |
ArrowFunction |
() => {
expect(queryItem.status).to.be.equal('aborted');
// Should not change anything because query is already complete
queryItem.done(result2);
// Finish test
done();
} | cyberalien/redundancy | tests/30_advanced_queries_test.ts | TypeScript |
ArrowFunction |
(data, error) => {
// Make sure queries were sent
expect(sentQuery).to.be.equal(2);
// Second query should have been aborted
expect(itemAborted).to.be.equal(true);
// Validate data
expect(data).to.be.equal(result1);
expect(error).to.be.equal(void 0);
// Check status
const status ... | cyberalien/redundancy | tests/30_advanced_queries_test.ts | TypeScript |
ArrowFunction |
(done) => {
const payload = {};
const resources = [{}, {}];
const result = {};
const config: RedundancyConfig = {
resources,
index: 0,
timeout: 100,
rotate: 25,
random: false,
dataAfterTimeout: false,
};
// Tracking
let isSync = true;
const startTime = Date.now();
let sentQuery = 0... | cyberalien/redundancy | tests/30_advanced_queries_test.ts | TypeScript |
ArrowFunction |
(resource, queryPayload, queryItem) => {
expect(isSync).to.be.equal(false);
expect(queryPayload).to.be.equal(payload);
// Query should be executed 2 times
expect(sentQuery < 2).to.be.equal(true);
expect(resource).to.be.equal(resources[sentQuery]);
// Check status
expect(queryItem.getQuery... | cyberalien/redundancy | tests/30_advanced_queries_test.ts | TypeScript |
ArrowFunction |
(): void => {
item1Aborted = true;
} | cyberalien/redundancy | tests/30_advanced_queries_test.ts | TypeScript |
ArrowFunction |
(): void => {
item2Aborted = true;
} | cyberalien/redundancy | tests/30_advanced_queries_test.ts | TypeScript |
ArrowFunction |
(data, error) => {
// Make sure queries were sent
expect(sentQuery).to.be.equal(2);
// Bump couneter
completeCount++;
switch (completeCount) {
case 1:
// First call: time out
((): void => {
// Validate data
expect(data).to.be.equal(void 0);
expect(error).to.be... | cyberalien/redundancy | tests/30_advanced_queries_test.ts | TypeScript |
ArrowFunction |
(): void => {
// Validate data
expect(data).to.be.equal(void 0);
expect(error).to.be.equal(void 0);
// Check status
const status = getStatus();
expect(status.status).to.be.equal('failed');
expect(status.queriesSent).to.be.equal(2);
expect(status.queriesPending).... | cyberalien/redundancy | tests/30_advanced_queries_test.ts | TypeScript |
ArrowFunction |
(done) => {
const payload = {};
const resources = [{}, {}];
const result = {};
const config: RedundancyConfig = {
resources,
index: 0,
timeout: 100,
rotate: 25,
random: false,
dataAfterTimeout: true,
};
// Tracking
let isSync = true;
const startTime = Date.now();
let sentQuery = 0;... | cyberalien/redundancy | tests/30_advanced_queries_test.ts | TypeScript |
ArrowFunction |
(data, error) => {
// Make sure queries were sent
expect(sentQuery).to.be.equal(2);
// Bump couneter
completeCount++;
switch (completeCount) {
case 1:
// First call: time out
((): void => {
// Validate data
expect(data).to.be.equal(void 0);
expect(error).to.be... | cyberalien/redundancy | tests/30_advanced_queries_test.ts | TypeScript |
ArrowFunction |
(): void => {
// Validate data
expect(data).to.be.equal(void 0);
expect(error).to.be.equal(void 0);
// Check status
const status = getStatus();
expect(status.status).to.be.equal('failed');
expect(status.queriesSent).to.be.equal(2);
expect(status.queriesPending).... | cyberalien/redundancy | tests/30_advanced_queries_test.ts | TypeScript |
ArrowFunction |
(): void => {
// Validate data
expect(data).to.be.equal(result);
expect(error).to.be.equal(void 0);
// Check status
const status = getStatus();
expect(status.status).to.be.equal('completed');
expect(status.queriesSent).to.be.equal(2);
expect(status.queriesPendin... | cyberalien/redundancy | tests/30_advanced_queries_test.ts | TypeScript |
ArrowFunction |
() => {
const [open, setOpen] = React.useState(true);
const [openSecondOverlay, setOpenSecondOverlay] = React.useState(false);
const dimension = select('dimension', ['medium', 'large'], 'medium');
const knobOpen = boolean('open', open);
const knobSecondOpen = boolean('openSecondOverlay', openSecondOverlay);... | SaniyaGupta/design-system | core/components/molecules/fullscreenModal/__stories__/Layering.story.tsx | TypeScript |
ArrowFunction |
() => {
setOpen(!open);
action('on close triggered')();
updateKnob('open', !open);
} | SaniyaGupta/design-system | core/components/molecules/fullscreenModal/__stories__/Layering.story.tsx | TypeScript |
ArrowFunction |
() => {
setOpenSecondOverlay(!openSecondOverlay);
action('on close triggered')();
updateKnob('openSecondOverlay', !openSecondOverlay);
} | SaniyaGupta/design-system | core/components/molecules/fullscreenModal/__stories__/Layering.story.tsx | TypeScript |
ArrowFunction |
() => {
setOpen(true);
updateKnob('open', !open);
} | SaniyaGupta/design-system | core/components/molecules/fullscreenModal/__stories__/Layering.story.tsx | TypeScript |
ArrowFunction |
() => {
setOpenSecondOverlay(true);
updateKnob('openSecondOverlay', true);
} | SaniyaGupta/design-system | core/components/molecules/fullscreenModal/__stories__/Layering.story.tsx | TypeScript |
ArrowFunction |
() => {
return (
<>
<p>mode="month"</p>
<DatePicker placeholder="Please select" mode="month" />
<p>mode="year"</p>
<DatePicker placeholder="Please select" mode="year" />
</> | zhuangTianYu/fog-design | src/components/date-picker/demo/demo-4.tsx | TypeScript |
ArrowFunction |
type => Facilities | Kuunika/mhfr-backend | src/common/entities/facility_types.entity.ts | TypeScript |
ArrowFunction |
facilities => facilities.facility_type | Kuunika/mhfr-backend | src/common/entities/facility_types.entity.ts | TypeScript |
ClassDeclaration |
@Entity()
export class Facility_Types {
@PrimaryGeneratedColumn()
id: number;
@Column()
facility_type: string;
@Column({type: 'text'})
description: string;
@CreateDateColumn({type: 'timestamp'})
created_at: Date;
@UpdateDateColumn({type: 'timestamp'})
updated_at: Date;
... | Kuunika/mhfr-backend | src/common/entities/facility_types.entity.ts | TypeScript |
ClassDeclaration |
export class HelmReleaseMenu extends React.Component<Props> {
@autobind()
remove() {
return releaseStore.remove(this.props.release);
}
@autobind()
upgrade() {
const { release, hideDetails } = this.props;
createUpgradeChartTab(release);
hideDetails && hideDetails();
}
@autobind()
roll... | 22dm/lens | src/renderer/components/+apps-releases/release-menu.tsx | TypeScript |
InterfaceDeclaration |
interface Props extends MenuActionsProps {
release: HelmRelease;
hideDetails?(): void;
} | 22dm/lens | src/renderer/components/+apps-releases/release-menu.tsx | TypeScript |
MethodDeclaration |
@autobind()
remove() {
return releaseStore.remove(this.props.release);
} | 22dm/lens | src/renderer/components/+apps-releases/release-menu.tsx | TypeScript |
MethodDeclaration |
@autobind()
upgrade() {
const { release, hideDetails } = this.props;
createUpgradeChartTab(release);
hideDetails && hideDetails();
} | 22dm/lens | src/renderer/components/+apps-releases/release-menu.tsx | TypeScript |
MethodDeclaration |
@autobind()
rollback() {
ReleaseRollbackDialog.open(this.props.release);
} | 22dm/lens | src/renderer/components/+apps-releases/release-menu.tsx | TypeScript |
MethodDeclaration |
renderContent() {
const { release, toolbar } = this.props;
if (!release) return;
const hasRollback = release && release.getRevision() > 1;
return (
<>
{hasRollback && (
<MenuItem onClick={this.rollback}>
<Icon material="history" interactive={toolbar} title={_i18n._... | 22dm/lens | src/renderer/components/+apps-releases/release-menu.tsx | TypeScript |
MethodDeclaration |
cssNames("HelmReleaseMenu", className) | 22dm/lens | src/renderer/components/+apps-releases/release-menu.tsx | TypeScript |
FunctionDeclaration |
async function getTotalGenerated(opts: Record<string, string>) {
const xchain = nonNullable(opts.xchain);
const asset = nonNullable(opts.asset);
if (xchain !== 'ethereum') throw new Error('only support ethereum currently');
const configPath = nonNullable(opts.config);
await bootstrap(configPath);
const con... | homura/force-bridge | offchain-modules/packages/app-cli/src/bridgeFee.ts | TypeScript |
FunctionDeclaration |
async function getTotalWithdrawed(opts: Record<string, string>) {
const xchain = nonNullable(opts.xchain);
const asset = nonNullable(opts.asset);
if (xchain !== 'ethereum') throw new Error('only support ethereum currently');
const configPath = nonNullable(opts.config);
await bootstrap(configPath);
const co... | homura/force-bridge | offchain-modules/packages/app-cli/src/bridgeFee.ts | TypeScript |
FunctionDeclaration |
async function getTotalAvailable(opts: Record<string, string>) {
const xchain = nonNullable(opts.xchain);
const asset = nonNullable(opts.asset);
if (xchain !== 'ethereum') throw new Error('only support ethereum currently');
const configPath = nonNullable(opts.config);
await bootstrap(configPath);
const con... | homura/force-bridge | offchain-modules/packages/app-cli/src/bridgeFee.ts | TypeScript |
FunctionDeclaration |
async function generateWithdrawTxSignature(opts: Record<string, string | string[]>) {
const xchain = nonNullable(opts.xchain) as string;
if (xchain !== 'ethereum') throw new Error('only support ethereum currently');
const asset = nonNullable(opts.asset) as string;
const ethAsset = new EthAsset(asset);
const ... | homura/force-bridge | offchain-modules/packages/app-cli/src/bridgeFee.ts | TypeScript |
FunctionDeclaration |
async function sendWithdrawTx(opts: Record<string, string | string[] | boolean>) {
const xchain = nonNullable(opts.xchain) as string;
if (xchain !== 'ethereum') throw new Error('only support ethereum currently');
const asset = nonNullable(opts.asset) as string;
const ethAsset = new EthAsset(asset);
const rec... | homura/force-bridge | offchain-modules/packages/app-cli/src/bridgeFee.ts | TypeScript |
ArrowFunction |
(r, i) => {
return {
ckbTxHash: WithdrawBridgeFeeTopic,
token: asset,
amount: BigNumber.from(ethAsset.parseAmount(amount[i])),
recipient: r,
};
} | homura/force-bridge | offchain-modules/packages/app-cli/src/bridgeFee.ts | TypeScript |
ArrowFunction |
(s) => s.slice(2) | homura/force-bridge | offchain-modules/packages/app-cli/src/bridgeFee.ts | TypeScript |
ArrowFunction |
() => {
const args = ['test'];
let context: RedisContext;
beforeEach(() => {
context = new RedisContext(args as [string]);
});
describe('getChannel', () => {
it('should return original channel', () => {
expect(context.getChannel()).to.be.eql(args[0]);
});
});
} | 10088/nest | packages/microservices/test/ctx-host/redis.context.spec.ts | TypeScript |
ArrowFunction |
() => {
context = new RedisContext(args as [string]);
} | 10088/nest | packages/microservices/test/ctx-host/redis.context.spec.ts | TypeScript |
ArrowFunction |
() => {
it('should return original channel', () => {
expect(context.getChannel()).to.be.eql(args[0]);
});
} | 10088/nest | packages/microservices/test/ctx-host/redis.context.spec.ts | TypeScript |
ArrowFunction |
() => {
expect(context.getChannel()).to.be.eql(args[0]);
} | 10088/nest | packages/microservices/test/ctx-host/redis.context.spec.ts | TypeScript |
ClassDeclaration | /**
* <p>Creates an assessment template for the assessment target that is specified by the ARN
* of the assessment target. If the <a href="https://docs.aws.amazon.com/inspector/latest/userguide/inspector_slr.html">service-linked role</a> isn’t already registered, this action also creates and
* regi... | Autoskaler/aws-sdk-js-v3 | deno/client-inspector/commands/CreateAssessmentTemplateCommand.ts | TypeScript |
InterfaceDeclaration |
export interface CreateAssessmentTemplateCommandInput extends CreateAssessmentTemplateRequest {} | Autoskaler/aws-sdk-js-v3 | deno/client-inspector/commands/CreateAssessmentTemplateCommand.ts | TypeScript |
InterfaceDeclaration |
export interface CreateAssessmentTemplateCommandOutput extends CreateAssessmentTemplateResponse, __MetadataBearer {} | Autoskaler/aws-sdk-js-v3 | deno/client-inspector/commands/CreateAssessmentTemplateCommand.ts | TypeScript |
MethodDeclaration | /**
* @internal
*/
resolveMiddleware(
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
configuration: InspectorClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler<CreateAssessmentTemplateCommandInput, CreateAssessmentTemplateCommandOutput> {
this.middlewareStack.u... | Autoskaler/aws-sdk-js-v3 | deno/client-inspector/commands/CreateAssessmentTemplateCommand.ts | TypeScript |
MethodDeclaration |
private serialize(input: CreateAssessmentTemplateCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
return serializeAws_json1_1CreateAssessmentTemplateCommand(input, context);
} | Autoskaler/aws-sdk-js-v3 | deno/client-inspector/commands/CreateAssessmentTemplateCommand.ts | TypeScript |
MethodDeclaration |
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateAssessmentTemplateCommandOutput> {
return deserializeAws_json1_1CreateAssessmentTemplateCommand(output, context);
} | Autoskaler/aws-sdk-js-v3 | deno/client-inspector/commands/CreateAssessmentTemplateCommand.ts | TypeScript |
ClassDeclaration | // Copyright (c) Wictor Wilén. All rights reserved.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
/**
* Configuration options for the generator
*/
export class GeneratorTeamsAppOptions {
id: string;
title: string;
description: string;
solutionName: st... | felipeplets/generator-teams | src/app/GeneratorTeamsAppOptions.ts | TypeScript |
FunctionDeclaration |
function normalizeFilename(filename: string) {
if (filename.startsWith('/@fs')) {
filename = filename.slice('/@fs'.length);
} else if (filename.startsWith('/') && !ancestor(filename, config.root.pathname)) {
filename = new URL('.' + filename, config.root).pathname;
}
return filename;
} | natemoo-re/astro | packages/astro/src/vite-plugin-astro/index.ts | TypeScript |
FunctionDeclaration |
function relativeToRoot(pathname: string) {
const arg = startsWithForwardSlash(pathname) ? '.' + pathname : pathname;
const url = new URL(arg, config.root);
return slash(fileURLToPath(url)) + url.search;
} | natemoo-re/astro | packages/astro/src/vite-plugin-astro/index.ts | TypeScript |
ArrowFunction |
(path: string) => path.startsWith(srcRootWeb) | natemoo-re/astro | packages/astro/src/vite-plugin-astro/index.ts | TypeScript |
ArrowFunction |
(s) => s.stage === 'page' | natemoo-re/astro | packages/astro/src/vite-plugin-astro/index.ts | TypeScript |
InterfaceDeclaration |
interface AstroPluginOptions {
config: AstroConfig;
logging: LogOptions;
} | natemoo-re/astro | packages/astro/src/vite-plugin-astro/index.ts | TypeScript |
MethodDeclaration |
configResolved(_resolvedConfig) {
resolvedConfig = _resolvedConfig;
viteTransform = getViteTransform(resolvedConfig);
} | natemoo-re/astro | packages/astro/src/vite-plugin-astro/index.ts | TypeScript |
MethodDeclaration |
configureServer(server) {
viteDevServer = server;
} | natemoo-re/astro | packages/astro/src/vite-plugin-astro/index.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.