type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
FunctionDeclaration |
export function SacramentsBoldIcon(props: IconProps) {
return (
<Icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
<path d="M.5 12A11.5 11.5 0 1012 .5 11.513 11.513 0 00.5 12zm5-.5a1 1 0 011-1h3.75a.25.25 0 00.25-.25V6.5a1 1 0 011-1h1a1 1 0 011 1v3.75a.25.25 0 00.25.25h3.75a1 1 0 011 ... | ParishConnect/ui | src/Icon/generated/SacramentsBold.tsx | TypeScript |
ArrowFunction |
(iconProps: IFluentIconsProps, props: React.HTMLAttributes<HTMLElement>): JSX.Element => {
const {
primaryFill,
className
} = iconProps;
return <svg {...props} width={24} height={24} viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" className={className}><path d="M15.28 6.03c-.3.3-.77.3-1.06 0l-1.47... | LiquidatorCoder/fluentui-system-icons | packages/react-icons/src/components/ArrowMove24Regular.tsx | TypeScript |
MethodDeclaration |
startAnimationForLineChart(chart) {
let seq: any, delays: any, durations: any;
seq = 0;
delays = 80;
durations = 500;
chart.on('draw', function (data) {
if (data.type === 'line' || data.type === 'area') {
data.element.animate({
d: {
begin: 600,
dur: ... | raylison100/Voltaqui-Frontend | src/app/components/dashboard/dashboard.component.ts | TypeScript |
MethodDeclaration |
startAnimationForBarChart(chart) {
let seq2: any, delays2: any, durations2: any;
seq2 = 0;
delays2 = 80;
durations2 = 500;
chart.on('draw', function (data) {
if (data.type === 'bar') {
seq2++;
data.element.animate({
opacity: {
begin: seq2 * delays2,
... | raylison100/Voltaqui-Frontend | src/app/components/dashboard/dashboard.component.ts | TypeScript |
MethodDeclaration |
ngOnInit() {
/* ----------========== Visitas na semana Chart initialization For Documentation ==========---------- */
const dataDailySalesChart: any = {
labels: ['M', 'T', 'W', 'T', 'F', 'S', 'S'],
series: [
[12, 17, 7, 17, 23, 18, 38]
]
};
const optionsDailySalesChar... | raylison100/Voltaqui-Frontend | src/app/components/dashboard/dashboard.component.ts | TypeScript |
FunctionDeclaration | /**
* A DDoS protection plan in a resource group.
*/
export function getDdosProtectionPlan(args: GetDdosProtectionPlanArgs, opts?: pulumi.InvokeOptions): Promise<GetDdosProtectionPlanResult> {
if (!opts) {
opts = {}
}
if (!opts.version) {
opts.version = utilities.getVersion();
}
r... | polivbr/pulumi-azure-native | sdk/nodejs/network/v20181001/getDdosProtectionPlan.ts | TypeScript |
InterfaceDeclaration |
export interface GetDdosProtectionPlanArgs {
/**
* The name of the DDoS protection plan.
*/
ddosProtectionPlanName: string;
/**
* The name of the resource group.
*/
resourceGroupName: string;
} | polivbr/pulumi-azure-native | sdk/nodejs/network/v20181001/getDdosProtectionPlan.ts | TypeScript |
InterfaceDeclaration | /**
* A DDoS protection plan in a resource group.
*/
export interface GetDdosProtectionPlanResult {
/**
* A unique read-only string that changes whenever the resource is updated.
*/
readonly etag: string;
/**
* Resource ID.
*/
readonly id: string;
/**
* Resource location.
... | polivbr/pulumi-azure-native | sdk/nodejs/network/v20181001/getDdosProtectionPlan.ts | TypeScript |
FunctionDeclaration |
export default function reducer(
state: ContractsState = initialState,
action: any
) {
const {type, ...payload} = action;
switch (type) {
case CLEAR_CONTRACTS:
return clearContracts(state);
case CONTRACT_BANK_ADAPTER:
return contractBankAdapter(state, payload);
case CONTRACT_BANK_EXTEN... | harmony-one/tribute-ui | src/store/contracts/reducers.ts | TypeScript |
FunctionDeclaration |
function clearContracts(state: ContractsState) {
return {...state, ...initialState};
} | harmony-one/tribute-ui | src/store/contracts/reducers.ts | TypeScript |
FunctionDeclaration |
function contractBankFactory(state: ContractsState, payload: any) {
return {...state, BankFactoryContract: {...payload}};
} | harmony-one/tribute-ui | src/store/contracts/reducers.ts | TypeScript |
FunctionDeclaration |
function contractDAOFactory(state: ContractsState, payload: any) {
return {...state, DaoFactoryContract: {...payload}};
} | harmony-one/tribute-ui | src/store/contracts/reducers.ts | TypeScript |
FunctionDeclaration |
function contractDAORegistry(state: ContractsState, payload: any) {
return {...state, DaoRegistryContract: {...payload}};
} | harmony-one/tribute-ui | src/store/contracts/reducers.ts | TypeScript |
FunctionDeclaration |
function contractDaoRegistryAdapter(
state: ContractsState,
payload: any
): ContractsState {
return {...state, DaoRegistryAdapterContract: {...payload}};
} | harmony-one/tribute-ui | src/store/contracts/reducers.ts | TypeScript |
FunctionDeclaration |
function contractBankExtension(
state: ContractsState,
payload: any
): ContractsState {
return {...state, BankExtensionContract: {...payload}};
} | harmony-one/tribute-ui | src/store/contracts/reducers.ts | TypeScript |
FunctionDeclaration |
function contractConfiguration(state: ContractsState, payload: any) {
return {...state, ConfigurationContract: {...payload}};
} | harmony-one/tribute-ui | src/store/contracts/reducers.ts | TypeScript |
FunctionDeclaration |
function contractDistribute(
state: ContractsState,
payload: any
): ContractsState {
return {...state, DistributeContract: {...payload}};
} | harmony-one/tribute-ui | src/store/contracts/reducers.ts | TypeScript |
FunctionDeclaration |
function contractFinancing(state: ContractsState, payload: any) {
return {...state, FinancingContract: {...payload}};
} | harmony-one/tribute-ui | src/store/contracts/reducers.ts | TypeScript |
FunctionDeclaration |
function contractGuildBank(state: ContractsState, payload: any) {
return {...state, GuildBankContract: {...payload}};
} | harmony-one/tribute-ui | src/store/contracts/reducers.ts | TypeScript |
FunctionDeclaration |
function contractOnboarding(state: ContractsState, payload: any) {
return {...state, OnboardingContract: {...payload}};
} | harmony-one/tribute-ui | src/store/contracts/reducers.ts | TypeScript |
FunctionDeclaration |
function contractRagequit(state: ContractsState, payload: any) {
return {...state, RagequitContract: {...payload}};
} | harmony-one/tribute-ui | src/store/contracts/reducers.ts | TypeScript |
FunctionDeclaration |
function contractTribute(state: ContractsState, payload: any): ContractsState {
return {...state, TributeContract: {...payload}};
} | harmony-one/tribute-ui | src/store/contracts/reducers.ts | TypeScript |
FunctionDeclaration |
function contractVoting(state: ContractsState, payload: any): ContractsState {
return {...state, VotingContract: {...payload}};
} | harmony-one/tribute-ui | src/store/contracts/reducers.ts | TypeScript |
FunctionDeclaration |
function contractManaging(state: ContractsState, payload: any): ContractsState {
return {...state, ManagingContract: {...payload}};
} | harmony-one/tribute-ui | src/store/contracts/reducers.ts | TypeScript |
FunctionDeclaration |
function contractBankAdapter(
state: ContractsState,
payload: any
): ContractsState {
return {...state, BankAdapterContract: {...payload}};
} | harmony-one/tribute-ui | src/store/contracts/reducers.ts | TypeScript |
FunctionDeclaration |
function contractNFTAdapter(
state: ContractsState,
payload: any
): ContractsState {
return {...state, NFTAdapterContract: {...payload}};
} | harmony-one/tribute-ui | src/store/contracts/reducers.ts | TypeScript |
FunctionDeclaration |
function contractTributeNFT(
state: ContractsState,
payload: any
): ContractsState {
return {...state, TributeNFTContract: {...payload}};
} | harmony-one/tribute-ui | src/store/contracts/reducers.ts | TypeScript |
FunctionDeclaration |
function contractCouponOnboarding(
state: ContractsState,
payload: any
): ContractsState {
return {...state, CouponOnboardingContract: {...payload}};
} | harmony-one/tribute-ui | src/store/contracts/reducers.ts | TypeScript |
FunctionDeclaration |
function contractNFTExtension(
state: ContractsState,
payload: any
): ContractsState {
return {...state, NFTExtensionContract: {...payload}};
} | harmony-one/tribute-ui | src/store/contracts/reducers.ts | TypeScript |
FunctionDeclaration |
function contractERC20Extension(
state: ContractsState,
payload: any
): ContractsState {
return {...state, ERC20ExtensionContract: {...payload}};
} | harmony-one/tribute-ui | src/store/contracts/reducers.ts | TypeScript |
ClassDeclaration | /**
* [[SimulcastTransceiverController]] implements [[VideoStreamIndex]] to facilitate video stream
* subscription and includes query functions for stream id and attendee id.
*/
export default class SimulcastVideoStreamIndex extends DefaultVideoStreamIndex {
private streamIdToBitrateKbpsMap;
static readonly ... | eMed-com/amazon-chime-sdk-js | build/videostreamindex/SimulcastVideoStreamIndex.d.ts | TypeScript |
MethodDeclaration |
localStreamDescriptions(): VideoStreamDescription[]; | eMed-com/amazon-chime-sdk-js | build/videostreamindex/SimulcastVideoStreamIndex.d.ts | TypeScript |
MethodDeclaration |
integrateUplinkPolicyDecision(encodingParams: RTCRtpEncodingParameters[]): void; | eMed-com/amazon-chime-sdk-js | build/videostreamindex/SimulcastVideoStreamIndex.d.ts | TypeScript |
MethodDeclaration |
integrateBitratesFrame(bitrateFrame: SdkBitrateFrame): void; | eMed-com/amazon-chime-sdk-js | build/videostreamindex/SimulcastVideoStreamIndex.d.ts | TypeScript |
MethodDeclaration |
integrateIndexFrame(indexFrame: SdkIndexFrame): void; | eMed-com/amazon-chime-sdk-js | build/videostreamindex/SimulcastVideoStreamIndex.d.ts | TypeScript |
MethodDeclaration |
integrateSubscribeAckFrame(subscribeAck: SdkSubscribeAckFrame): void; | eMed-com/amazon-chime-sdk-js | build/videostreamindex/SimulcastVideoStreamIndex.d.ts | TypeScript |
ArrowFunction |
async (
input: SendSerialConsoleSSHPublicKeyCommandInput,
context: __SerdeContext
): Promise<__HttpRequest> => {
const headers: __HeaderBag = {
"content-type": "application/x-amz-json-1.1",
"x-amz-target": "AWSEC2InstanceConnectService.SendSerialConsoleSSHPublicKey",
};
let body: any;
body = JSON.s... | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
async (
input: SendSSHPublicKeyCommandInput,
context: __SerdeContext
): Promise<__HttpRequest> => {
const headers: __HeaderBag = {
"content-type": "application/x-amz-json-1.1",
"x-amz-target": "AWSEC2InstanceConnectService.SendSSHPublicKey",
};
let body: any;
body = JSON.stringify(serializeAws_json... | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
async (
output: __HttpResponse,
context: __SerdeContext
): Promise<SendSerialConsoleSSHPublicKeyCommandOutput> => {
if (output.statusCode >= 300) {
return deserializeAws_json1_1SendSerialConsoleSSHPublicKeyCommandError(output, context);
}
const data: any = await parseBody(output.body, context);
let con... | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
async (
output: __HttpResponse,
context: __SerdeContext
): Promise<SendSerialConsoleSSHPublicKeyCommandOutput> => {
const parsedOutput: any = {
...output,
body: await parseBody(output.body, context),
};
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
let errorCode = "Un... | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
async (
output: __HttpResponse,
context: __SerdeContext
): Promise<SendSSHPublicKeyCommandOutput> => {
if (output.statusCode >= 300) {
return deserializeAws_json1_1SendSSHPublicKeyCommandError(output, context);
}
const data: any = await parseBody(output.body, context);
let contents: any = {};
content... | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
async (
output: __HttpResponse,
context: __SerdeContext
): Promise<SendSSHPublicKeyCommandOutput> => {
const parsedOutput: any = {
...output,
body: await parseBody(output.body, context),
};
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
let errorCode = "UnknownError";
... | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
async (
parsedOutput: any,
context: __SerdeContext
): Promise<AuthException> => {
const body = parsedOutput.body;
const deserialized: any = deserializeAws_json1_1AuthException(body, context);
const contents: AuthException = {
name: "AuthException",
$fault: "client",
$metadata: deserializeMetadata... | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
async (
parsedOutput: any,
context: __SerdeContext
): Promise<EC2InstanceNotFoundException> => {
const body = parsedOutput.body;
const deserialized: any = deserializeAws_json1_1EC2InstanceNotFoundException(body, context);
const contents: EC2InstanceNotFoundException = {
name: "EC2InstanceNotFoundExceptio... | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
async (
parsedOutput: any,
context: __SerdeContext
): Promise<EC2InstanceTypeInvalidException> => {
const body = parsedOutput.body;
const deserialized: any = deserializeAws_json1_1EC2InstanceTypeInvalidException(body, context);
const contents: EC2InstanceTypeInvalidException = {
name: "EC2InstanceTypeInv... | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
async (
parsedOutput: any,
context: __SerdeContext
): Promise<InvalidArgsException> => {
const body = parsedOutput.body;
const deserialized: any = deserializeAws_json1_1InvalidArgsException(body, context);
const contents: InvalidArgsException = {
name: "InvalidArgsException",
$fault: "client",
$m... | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
async (
parsedOutput: any,
context: __SerdeContext
): Promise<SerialConsoleAccessDisabledException> => {
const body = parsedOutput.body;
const deserialized: any = deserializeAws_json1_1SerialConsoleAccessDisabledException(body, context);
const contents: SerialConsoleAccessDisabledException = {
name: "Ser... | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
async (
parsedOutput: any,
context: __SerdeContext
): Promise<SerialConsoleSessionLimitExceededException> => {
const body = parsedOutput.body;
const deserialized: any = deserializeAws_json1_1SerialConsoleSessionLimitExceededException(body, context);
const contents: SerialConsoleSessionLimitExceededException ... | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
async (
parsedOutput: any,
context: __SerdeContext
): Promise<SerialConsoleSessionUnavailableException> => {
const body = parsedOutput.body;
const deserialized: any = deserializeAws_json1_1SerialConsoleSessionUnavailableException(body, context);
const contents: SerialConsoleSessionUnavailableException = {
... | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
async (
parsedOutput: any,
context: __SerdeContext
): Promise<ServiceException> => {
const body = parsedOutput.body;
const deserialized: any = deserializeAws_json1_1ServiceException(body, context);
const contents: ServiceException = {
name: "ServiceException",
$fault: "server",
$metadata: deseria... | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
async (
parsedOutput: any,
context: __SerdeContext
): Promise<ThrottlingException> => {
const body = parsedOutput.body;
const deserialized: any = deserializeAws_json1_1ThrottlingException(body, context);
const contents: ThrottlingException = {
name: "ThrottlingException",
$fault: "client",
$metad... | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
(
input: SendSerialConsoleSSHPublicKeyRequest,
context: __SerdeContext
): any => {
return {
...(input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId }),
...(input.SSHPublicKey !== undefined && input.SSHPublicKey !== null && { SSHPublicKey: input.SSHPublicKey }),
... | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
(input: SendSSHPublicKeyRequest, context: __SerdeContext): any => {
return {
...(input.AvailabilityZone !== undefined &&
input.AvailabilityZone !== null && { AvailabilityZone: input.AvailabilityZone }),
...(input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId })... | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
(output: any, context: __SerdeContext): AuthException => {
return {
Message: __expectString(output.Message),
} as any;
} | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
(
output: any,
context: __SerdeContext
): EC2InstanceNotFoundException => {
return {
Message: __expectString(output.Message),
} as any;
} | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
(
output: any,
context: __SerdeContext
): EC2InstanceTypeInvalidException => {
return {
Message: __expectString(output.Message),
} as any;
} | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
(output: any, context: __SerdeContext): InvalidArgsException => {
return {
Message: __expectString(output.Message),
} as any;
} | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
(
output: any,
context: __SerdeContext
): SendSerialConsoleSSHPublicKeyResponse => {
return {
RequestId: __expectString(output.RequestId),
Success: __expectBoolean(output.Success),
} as any;
} | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
(
output: any,
context: __SerdeContext
): SendSSHPublicKeyResponse => {
return {
RequestId: __expectString(output.RequestId),
Success: __expectBoolean(output.Success),
} as any;
} | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
(
output: any,
context: __SerdeContext
): SerialConsoleAccessDisabledException => {
return {
Message: __expectString(output.Message),
} as any;
} | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
(
output: any,
context: __SerdeContext
): SerialConsoleSessionLimitExceededException => {
return {
Message: __expectString(output.Message),
} as any;
} | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
(
output: any,
context: __SerdeContext
): SerialConsoleSessionUnavailableException => {
return {
Message: __expectString(output.Message),
} as any;
} | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
(output: any, context: __SerdeContext): ServiceException => {
return {
Message: __expectString(output.Message),
} as any;
} | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
(output: any, context: __SerdeContext): ThrottlingException => {
return {
Message: __expectString(output.Message),
} as any;
} | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
(output: __HttpResponse): __ResponseMetadata => ({
httpStatusCode: output.statusCode,
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
extendedRequestId: output.headers["x-amz-id-2"],
cfId: output.headers["x-amz-cf-id"],
}) | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
(streamBody: any = new Uint8Array(), context: __SerdeContext): Promise<Uint8Array> => {
if (streamBody instanceof Uint8Array) {
return Promise.resolve(streamBody);
}
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
} | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
(streamBody: any, context: __SerdeContext): Promise<string> =>
collectBody(streamBody, context).then((body) => context.utf8Encoder(body)) | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
(body) => context.utf8Encoder(body) | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
async (
context: __SerdeContext,
headers: __HeaderBag,
path: string,
resolvedHostname: string | undefined,
body: any
): Promise<__HttpRequest> => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const contents: any = {
protocol,
hostname,
port,
me... | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
(streamBody: any, context: __SerdeContext): any =>
collectBodyString(streamBody, context).then((encoded) => {
if (encoded.length) {
return JSON.parse(encoded);
}
return {};
}) | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
(encoded) => {
if (encoded.length) {
return JSON.parse(encoded);
}
return {};
} | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
(output: __HttpResponse, data: any): string => {
const findKey = (object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
const sanitizeErrorCode = (rawValue: string): string => {
let cleanValue = rawValue;
if (cleanValue.indexOf(":") >= 0) {
cleanValue =... | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
(object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()) | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ArrowFunction |
(k) => k.toLowerCase() === key.toLowerCase() | AllanZhengYP/aws-sdk-js-v3 | clients/client-ec2-instance-connect/src/protocols/Aws_json1_1.ts | TypeScript |
ClassDeclaration |
declare class index {
static defaultMaxListeners: any;
static init(): void;
static listenerCount(emitter: any, type: any): any;
static tag: string;
static usingDomains: boolean;
constructor(options: any);
broadcast: any;
interval: any;
serviceTag: any;
port: any;
peerInfo: any;
addListener(type... | MetaMask/kitsunet-js | definitions/libp2p-mdns.d.ts | TypeScript |
ClassDeclaration |
class EventEmitter {
// Circular reference from index.EventEmitter
static EventEmitter: any;
static defaultMaxListeners: any;
static init(): void;
static listenerCount(emitter: any, type: any): any;
static usingDomains: boolean;
addListener(type: any, listener: any): any;
emit(type: any... | MetaMask/kitsunet-js | definitions/libp2p-mdns.d.ts | TypeScript |
MethodDeclaration |
static init(): void; | MetaMask/kitsunet-js | definitions/libp2p-mdns.d.ts | TypeScript |
MethodDeclaration |
static listenerCount(emitter: any, type: any): any; | MetaMask/kitsunet-js | definitions/libp2p-mdns.d.ts | TypeScript |
MethodDeclaration |
addListener(type: any, listener: any): any; | MetaMask/kitsunet-js | definitions/libp2p-mdns.d.ts | TypeScript |
MethodDeclaration |
emit(type: any, args: any): any; | MetaMask/kitsunet-js | definitions/libp2p-mdns.d.ts | TypeScript |
MethodDeclaration |
eventNames(): any; | MetaMask/kitsunet-js | definitions/libp2p-mdns.d.ts | TypeScript |
MethodDeclaration |
getMaxListeners(): any; | MetaMask/kitsunet-js | definitions/libp2p-mdns.d.ts | TypeScript |
MethodDeclaration |
listenerCount(type: any): any; | MetaMask/kitsunet-js | definitions/libp2p-mdns.d.ts | TypeScript |
MethodDeclaration |
listeners(type: any): any; | MetaMask/kitsunet-js | definitions/libp2p-mdns.d.ts | TypeScript |
MethodDeclaration |
off(type: any, listener: any): any; | MetaMask/kitsunet-js | definitions/libp2p-mdns.d.ts | TypeScript |
MethodDeclaration |
on(type: any, listener: any): any; | MetaMask/kitsunet-js | definitions/libp2p-mdns.d.ts | TypeScript |
MethodDeclaration |
once(type: any, listener: any): any; | MetaMask/kitsunet-js | definitions/libp2p-mdns.d.ts | TypeScript |
MethodDeclaration |
prependListener(type: any, listener: any): any; | MetaMask/kitsunet-js | definitions/libp2p-mdns.d.ts | TypeScript |
MethodDeclaration |
prependOnceListener(type: any, listener: any): any; | MetaMask/kitsunet-js | definitions/libp2p-mdns.d.ts | TypeScript |
MethodDeclaration |
rawListeners(type: any): any; | MetaMask/kitsunet-js | definitions/libp2p-mdns.d.ts | TypeScript |
MethodDeclaration |
removeAllListeners(type: any, ...args: any[]): any; | MetaMask/kitsunet-js | definitions/libp2p-mdns.d.ts | TypeScript |
MethodDeclaration |
removeListener(type: any, listener: any): any; | MetaMask/kitsunet-js | definitions/libp2p-mdns.d.ts | TypeScript |
MethodDeclaration |
setMaxListeners(n: any): any; | MetaMask/kitsunet-js | definitions/libp2p-mdns.d.ts | TypeScript |
MethodDeclaration |
start(callback: any): void; | MetaMask/kitsunet-js | definitions/libp2p-mdns.d.ts | TypeScript |
MethodDeclaration |
stop(callback: any): void; | MetaMask/kitsunet-js | definitions/libp2p-mdns.d.ts | TypeScript |
ClassDeclaration |
@Injectable()
export class AuthGuard implements CanActivate {
constructor(private router: Router) { }
canActivate() {
if (BackendService.isLoggedIn()) {
return true;
}
else {
this.router.navigate(["/login"]);
return false;
}
}
} | Teezkad/quizroom-beta | app/auth-guard.service.ts | TypeScript |
MethodDeclaration |
canActivate() {
if (BackendService.isLoggedIn()) {
return true;
}
else {
this.router.navigate(["/login"]);
return false;
}
} | Teezkad/quizroom-beta | app/auth-guard.service.ts | TypeScript |
ArrowFunction |
({ image, nickname, statusMesg, obsoleted, liveMode, stream, speakerOn }) => (
<div className="FaceImages-card" | tell-y/remote-faces | web/src/components/FaceImages.tsx | TypeScript |
ArrowFunction |
({
roomId,
userId,
nickname,
statusMesg,
liveMode,
micOn,
speakerOn,
videoDeviceId,
audioDeviceId,
}) => {
const { myImage, roomImages } = useFaceImages(
roomId,
userId,
nickname,
statusMesg,
liveMode,
videoDeviceId
);
const { faceSt... | tell-y/remote-faces | web/src/components/FaceImages.tsx | TypeScript |
ArrowFunction |
(item) => (
<FaceImage
key={item.userId} | tell-y/remote-faces | web/src/components/FaceImages.tsx | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.