type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
MethodDeclaration |
private async fireFileSystemChangeCore() {
let e = this._pendingFileSystemChange;
if (e == null) return;
this._pendingFileSystemChange = undefined;
const uris = await this.container.git.excludeIgnoredUris(this.path, e.uris);
if (uris.length === 0) return;
if (uris.length !== e.uris.length) {
e = { ..... | Levistator/vscode-gitlens | src/git/models/repository.ts | TypeScript |
MethodDeclaration |
private runTerminalCommand(command: string, ...args: string[]) {
const parsedArgs = args.map(arg =>
arg.startsWith('#') || arg.includes("'") || arg.includes('(') || arg.includes(')') ? `"${arg}"` : arg,
);
runGitCommandInTerminal(command, parsedArgs.join(' '), this.path, true);
setTimeout(() => this.fireCh... | Levistator/vscode-gitlens | src/git/models/repository.ts | TypeScript |
TypeAliasDeclaration |
type change = 500 | 1500 | 5000; | AviralCoder/Kaun_Banega_Gyanpati | src/lib/lib.ts | TypeScript |
ArrowFunction |
() => (
<TooltipGuide content="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam aliquet ornare est." /> | Actyx/actyx-ui | src/components/TooltipGuide/TooltipGuide.stories.tsx | TypeScript |
ArrowFunction |
(slug: string): void => {
cy.visit('/wp-admin/plugins.php');
cy.get(`#the-list tr[data-slug="${slug}"]`).then($pluginRow => {
if ($pluginRow.find('.activate > a').length > 0) {
cy.get(`#the-list tr[data-slug="${slug}"] .activate > a`)
.should('have.text', 'Activate')
.click();
}
});... | 10up/cypress-wp-utils | src/commands/activate-plugin.ts | TypeScript |
ArrowFunction |
$pluginRow => {
if ($pluginRow.find('.activate > a').length > 0) {
cy.get(`#the-list tr[data-slug="${slug}"] .activate > a`)
.should('have.text', 'Activate')
.click();
}
} | 10up/cypress-wp-utils | src/commands/activate-plugin.ts | TypeScript |
ClassDeclaration |
export class BitcoinCoreClient {
client: typeof Client;
/**
* Initialize the Bitcoin-core client, which is a js equivalent to bitcoin-cli
* @param network Bitcoin network (mainnet, testnet, regtest)
* @param host URL of Bitcoin node (e.g. localhost)
* @param username User for RPC authentic... | crypto-engineer/interbtc-api | src/utils/bitcoin-core-client.ts | TypeScript |
InterfaceDeclaration |
interface RecipientsToUTXOAmounts {
[key: string]: string;
} | crypto-engineer/interbtc-api | src/utils/bitcoin-core-client.ts | TypeScript |
MethodDeclaration |
async sendBtcTxAndMine(
recipient: string,
amount: MonetaryAmount<WrappedCurrency, BitcoinUnit>,
blocksToMine: number,
data?: string
): Promise<{
// big endian
txid: string;
rawTx: string;
}> {
const tx = await this.broadcastTx(recipient, amount, ... | crypto-engineer/interbtc-api | src/utils/bitcoin-core-client.ts | TypeScript |
MethodDeclaration |
formatRawTxInput(recipient: string, amount: Big, data?: string): RecipientsToUTXOAmounts[] {
const paidOutput: RecipientsToUTXOAmounts = {};
paidOutput[recipient] = amount.toString();
if (data !== undefined) {
return [{ data }, paidOutput];
}
return [paidOutput];
... | crypto-engineer/interbtc-api | src/utils/bitcoin-core-client.ts | TypeScript |
MethodDeclaration |
async broadcastTx(
recipient: string,
amount: MonetaryAmount<WrappedCurrency, BitcoinUnit>,
data?: string
): Promise<{
txid: string;
rawTx: string;
}> {
if (!this.client) {
throw new Error("Client needs to be initialized before usage");
}
... | crypto-engineer/interbtc-api | src/utils/bitcoin-core-client.ts | TypeScript |
MethodDeclaration |
async mineBlocks(n: number): Promise<void> {
console.log(`Mining ${n} Bitcoin block(s)`);
const newWalletAddress = await this.client.command("getnewaddress");
await this.client.command("generatetoaddress", n, newWalletAddress);
} | crypto-engineer/interbtc-api | src/utils/bitcoin-core-client.ts | TypeScript |
MethodDeclaration |
async getBalance(): Promise<string> {
return await this.client.command("getbalance");
} | crypto-engineer/interbtc-api | src/utils/bitcoin-core-client.ts | TypeScript |
MethodDeclaration |
async sendToAddress(address: string, amount: MonetaryAmount<WrappedCurrency, BitcoinUnit>): Promise<string> {
return await this.client.command("sendtoaddress", address, amount.toString(Bitcoin.units.BTC));
} | crypto-engineer/interbtc-api | src/utils/bitcoin-core-client.ts | TypeScript |
MethodDeclaration | // eslint-disable-next-line @typescript-eslint/no-explicit-any
getMempoolInfo(): Promise<any> {
return this.client.command("getmempoolinfo");
} | crypto-engineer/interbtc-api | src/utils/bitcoin-core-client.ts | TypeScript |
MethodDeclaration |
getBestBlockHash(): Promise<string> {
return this.client.command("getbestblockhash");
} | crypto-engineer/interbtc-api | src/utils/bitcoin-core-client.ts | TypeScript |
MethodDeclaration |
createWallet(name: string): Promise<void> {
return this.client.command("createwallet", name);
} | crypto-engineer/interbtc-api | src/utils/bitcoin-core-client.ts | TypeScript |
MethodDeclaration |
loadWallet(name: string): Promise<void> {
return this.client.command("loadwallet", name);
} | crypto-engineer/interbtc-api | src/utils/bitcoin-core-client.ts | TypeScript |
ArrowFunction |
({ result }) => {
const [t] = useTranslation("plugins");
return (
<Entry>
<PaddingRightIcon color={"warning"} name={"exclamation-triangle"} />
<p>{t(result?.rule)}</p>
</Entry> | scm-manager/scm-review-plugin | src/main/js/OverrideModalRow.tsx | TypeScript |
TypeAliasDeclaration |
type Props = WithTranslation & {
result: Result;
}; | scm-manager/scm-review-plugin | src/main/js/OverrideModalRow.tsx | TypeScript |
MethodDeclaration |
t(result?.rule) | scm-manager/scm-review-plugin | src/main/js/OverrideModalRow.tsx | TypeScript |
InterfaceDeclaration |
export interface User extends mongoose.Document{
id: string,
name: string,
email: string,
password: string
} | PatrickNiyogitare28/Nestjs_Demo | src/users/users.model.ts | TypeScript |
ArrowFunction |
(): void => {
const ruleRegistry = new RuleRegistry(),
availableCityBuildItemsRegistry = new AvailableCityBuildItemsRegistry(),
cityBuildRegistry = new CityBuildRegistry();
ruleRegistry.register(
...spend(),
...cityImprovementBuildCost(),
...unitBuildCost()
);
availableCityBuildItemsRegis... | civ-clone/base-treasury-civ1 | tests/spend.test.ts | TypeScript |
ArrowFunction |
([BuildItem, progress, expectedCost]): void => {
it(`should cost ${expectedCost} Gold to buy a ${BuildItem.name} with ${progress} progress`, (): void => {
const city = setUpCity({
ruleRegistry,
}),
cityBuild = new CityBuild(
city,
availableCityBuild... | civ-clone/base-treasury-civ1 | tests/spend.test.ts | TypeScript |
ArrowFunction |
(): void => {
const city = setUpCity({
ruleRegistry,
}),
cityBuild = new CityBuild(
city,
availableCityBuildItemsRegistry,
ruleRegistry
);
cityBuildRegistry.register(cityBuild);
const playerTreasury = new PlayerTrea... | civ-clone/base-treasury-civ1 | tests/spend.test.ts | TypeScript |
ClassDeclaration | /** Provides operations to manage the directReports property of the microsoft.graph.user entity. */
export class DirectReportsRequestBuilder {
/** The count property */
public get count(): CountRequestBuilder {
return new CountRequestBuilder(this.pathParameters, this.requestAdapter);
}
/** The o... | microsoftgraph/msgraph-sdk-typescript | src/me/directReports/directReportsRequestBuilder.ts | TypeScript |
MethodDeclaration | /**
* The users and contacts that report to the user. (The users and contacts that have their manager property set to this user.) Read-only. Nullable. Supports $expand.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a Requ... | microsoftgraph/msgraph-sdk-typescript | src/me/directReports/directReportsRequestBuilder.ts | TypeScript |
MethodDeclaration | /**
* The users and contacts that report to the user. (The users and contacts that have their manager property set to this user.) Read-only. Nullable. Supports $expand.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @param response... | microsoftgraph/msgraph-sdk-typescript | src/me/directReports/directReportsRequestBuilder.ts | TypeScript |
ArrowFunction |
() => {
const cursos = [];
if ( undefined === localStorage.getItem('exemploList') || null === localStorage.getItem('exemploList')
|| JSON.parse(localStorage.getItem('exemploList') )?.length === 0) {
for (let i = 0; i < 20; i++) {
cursos.push({
... | paulotrc/AngularExemplo | exemplo-front-angular/src/app/common/helpers/fake-db/mocks/exemplo/ExemploMock.ts | TypeScript |
ArrowFunction |
(id) => {
return JSON.parse(localStorage.getItem('exemploList'))[id];
} | paulotrc/AngularExemplo | exemplo-front-angular/src/app/common/helpers/fake-db/mocks/exemplo/ExemploMock.ts | TypeScript |
ClassDeclaration |
export class ExemploMock {
public static itens = () => {
const cursos = [];
if ( undefined === localStorage.getItem('exemploList') || null === localStorage.getItem('exemploList')
|| JSON.parse(localStorage.getItem('exemploList') )?.length === 0) {
for (let i = 0;... | paulotrc/AngularExemplo | exemplo-front-angular/src/app/common/helpers/fake-db/mocks/exemplo/ExemploMock.ts | TypeScript |
ArrowFunction |
({
dag,
tasks,
dagRuns,
isLoading,
errors,
}) => {
const formatCron = (cron: string) => (
cron[0] !== '@' ? cronstrue.toString(cron, { verbose: true }) : ''
);
return (
<DagContainer current="Overview">
{isLoading && (
<Text>Loading…</Text> | astronomer/airflow-ui | src/views/dag/index.tsx | TypeScript |
ArrowFunction |
(cron: string) => (
cron[0] !== '@' ? cronstrue.toString(cron, { verbose: true }) : ''
) | astronomer/airflow-ui | src/views/dag/index.tsx | TypeScript |
ArrowFunction |
(tag: DagTag) => (
<Tag key={tag.name} | astronomer/airflow-ui | src/views/dag/index.tsx | TypeScript |
ArrowFunction |
(dagRun: DagRunType) => (
<DagRun dagRun={dagRun} | astronomer/airflow-ui | src/views/dag/index.tsx | TypeScript |
ArrowFunction |
(task: Task) => (
<div key={task.taskId}>
<Button
m | astronomer/airflow-ui | src/views/dag/index.tsx | TypeScript |
ArrowFunction |
() => {
const { match: { params: { dagId } } }: RouterProps = useReactRouter();
const { data: dag, isLoading: dagLoading, error: dagError } = useDag(dagId);
const {
data: { tasks } = defaultTasks, isLoading: tasksLoading, error: tasksError,
} = useDagTasks(dagId);
const {
data: { dagRuns } = default... | astronomer/airflow-ui | src/views/dag/index.tsx | TypeScript |
InterfaceDeclaration |
interface RouterProps {
match: { params: { dagId: DagType['dagId'] } }
} | astronomer/airflow-ui | src/views/dag/index.tsx | TypeScript |
InterfaceDeclaration |
interface DagProps {
dag: DagType;
tasks: Task[];
dagRuns: DagRunType[];
isLoading: boolean;
errors: (Error | null)[];
} | astronomer/airflow-ui | src/views/dag/index.tsx | TypeScript |
MethodDeclaration |
formatScheduleCode(dag | astronomer/airflow-ui | src/views/dag/index.tsx | TypeScript |
ArrowFunction |
({ children, defaultConfiguration }: Properties) => {
const [configuration, setConfig] = React.useState<any>({
// Domain specific configuration defaults
dashboard: null,
profileIsRestoring: false,
// Initial sync state of profile. Handled in profile synchronizer.
profileIsSyncing: true,
// Separate flag ... | ArkEcosystem/ark-desktop | src/app/contexts/Configuration/Configuration.tsx | TypeScript |
ArrowFunction |
(config: any) => {
setConfig((latestConfig: any) => ({ ...latestConfig, ...config }));
} | ArkEcosystem/ark-desktop | src/app/contexts/Configuration/Configuration.tsx | TypeScript |
ArrowFunction |
(latestConfig: any) => ({ ...latestConfig, ...config }) | ArkEcosystem/ark-desktop | src/app/contexts/Configuration/Configuration.tsx | TypeScript |
ArrowFunction |
() => {
const value = React.useContext(ConfigurationContext);
if (value === undefined) {
throw new Error("[useConfiguration] Component not wrapped within a Provider");
}
return value;
} | ArkEcosystem/ark-desktop | src/app/contexts/Configuration/Configuration.tsx | TypeScript |
InterfaceDeclaration |
interface ConfigurationContextType {
configuration: Record<string, any>;
setConfiguration: (configuration: Record<string, any>) => void;
} | ArkEcosystem/ark-desktop | src/app/contexts/Configuration/Configuration.tsx | TypeScript |
InterfaceDeclaration |
interface Properties {
children: React.ReactNode;
defaultConfiguration?: any;
} | ArkEcosystem/ark-desktop | src/app/contexts/Configuration/Configuration.tsx | TypeScript |
ClassDeclaration |
export default class MarkerComponent extends React.Component {
private scene: Scene;
public componentWillUnmount() {
this.scene.destroy();
}
public async componentDidMount() {
const response = await fetch(
'https://gw.alipayobjects.com/os/basement_prod/d2e0e930-fd44-4fca-8872-c1037b0fee7b.json'... | Randysheng/L7 | stories/Components/components/Marker.tsx | TypeScript |
MethodDeclaration |
public componentWillUnmount() {
this.scene.destroy();
} | Randysheng/L7 | stories/Components/components/Marker.tsx | TypeScript |
MethodDeclaration |
public async componentDidMount() {
const response = await fetch(
'https://gw.alipayobjects.com/os/basement_prod/d2e0e930-fd44-4fca-8872-c1037b0fee7b.json',
);
const data = await response.json();
const scene = new Scene({
id: 'map',
map: new Mapbox({
style: 'dark',
cent... | Randysheng/L7 | stories/Components/components/Marker.tsx | TypeScript |
MethodDeclaration |
public render() {
return (
<div
id="map"
style={{
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
}} | Randysheng/L7 | stories/Components/components/Marker.tsx | TypeScript |
ArrowFunction |
() => {
const [posts, setPosts] = useState<any>([]);
const [currentPage, setCurrentPage] = useState<number>(1);
const [hasNextPage, setHasNextPage] = useState<boolean>(false);
const [hasPreviousPage, setHasPreviousPage] = useState<boolean>(false);
useEffect(() => {
axios({
method: 'GET',
url... | NVombat/MusicApp | client/src/components/Posts/Hero.tsx | TypeScript |
ArrowFunction |
() => {
axios({
method: 'GET',
url: `${process.env.REACT_APP_GET_API}`,
params: {
Page: currentPage,
},
})
.then((res: any) => {
setPosts(res.data.data);
setCurrentPage(res.data.currentPage);
setHasNextPage(res.data.hasNextPage);
setHasPrevi... | NVombat/MusicApp | client/src/components/Posts/Hero.tsx | TypeScript |
ArrowFunction |
(res: any) => {
setPosts(res.data.data);
setCurrentPage(res.data.currentPage);
setHasNextPage(res.data.hasNextPage);
setHasPreviousPage(res.data.hasPreviousPage);
} | NVombat/MusicApp | client/src/components/Posts/Hero.tsx | TypeScript |
ArrowFunction |
(err: any) => {
console.log(err);
} | NVombat/MusicApp | client/src/components/Posts/Hero.tsx | TypeScript |
ArrowFunction |
(item, index) => (
<div key={index} | NVombat/MusicApp | client/src/components/Posts/Hero.tsx | TypeScript |
ArrowFunction |
() => setCurrentPage(currentPage - 1) | NVombat/MusicApp | client/src/components/Posts/Hero.tsx | TypeScript |
ArrowFunction |
() => setCurrentPage(currentPage + 1) | NVombat/MusicApp | client/src/components/Posts/Hero.tsx | TypeScript |
InterfaceDeclaration |
export interface HttpErrorCallback {
handleApiError(errorResponse: HttpErrorResponse): any;
} | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
MethodDeclaration |
getHttpOptions() {
return {
headers: new HttpHeaders({
Authorization: this.authenticationService.loggedInAccessToken
})
};
} | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
MethodDeclaration |
getAllDocuments(queryString: string, callback: HttpErrorCallback): Observable<{} | Document[]> {
return this.httpClient
.get<Document[]>(this.configurationService.apigateway.url + '/documents' + queryString, this.getHttpOptions())
.pipe(shareReplay(1),
catchError(callback.handleApiError));
} | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
MethodDeclaration |
getDocument(documentID: string, callback: HttpErrorCallback): Observable<{} | Document> {
return this.httpClient
.get<Document>(this.configurationService.apigateway.url + '/documents/' + documentID, this.getHttpOptions())
.pipe(shareReplay(1),
catchError(callback.handleApiError));
} | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
MethodDeclaration |
postDocument(json: string, callback: HttpErrorCallback): any {
const body = JSON.parse(json);
return this.httpClient
.post<Document>(this.configurationService.apigateway.url + '/documents', body, this.getHttpOptions())
.pipe(shareReplay(1),
catchError(callback.handleApiError));
} | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
MethodDeclaration |
patchDocument(documentID: string, json: string, callback: HttpErrorCallback): any {
const body = JSON.parse(json);
return this.httpClient
.patch<Document>(this.configurationService.apigateway.url + '/documents/' + documentID, body, this.getHttpOptions())
.pipe(shareReplay(1),
catchError(cal... | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
MethodDeclaration |
deleteDocument(documentID: string, callback: HttpErrorCallback): Observable<{} | Document> {
return this.httpClient
.delete<Document>(this.configurationService.apigateway.url + '/documents/' + documentID, this.getHttpOptions())
.pipe(shareReplay(1),
catchError(callback.handleApiError));
} | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
MethodDeclaration |
getDocumentTags(documentID: string, queryString: string, callback: HttpErrorCallback): Observable<{} | Array<Tag>> {
return this.httpClient
.get<Array<Tag>>(this.configurationService.apigateway.url + '/documents/' + documentID + '/tags' + queryString, this.getHttpOptions())
.pipe(shareReplay(1),
... | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
MethodDeclaration |
postDocumentTag(documentID: string, json: string, callback: HttpErrorCallback): Observable<any> {
const body = JSON.parse(json);
return this.httpClient
.post<Tag>(this.configurationService.apigateway.url + '/documents/' + documentID + '/tags', body, this.getHttpOptions())
.pipe(shareReplay(1),
... | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
MethodDeclaration |
getDocumentTag(documentID: string, key: string, callback: HttpErrorCallback): Observable<any> {
return this.httpClient
.get<Tag>(
this.configurationService.apigateway.url + '/documents/' + documentID + '/tags/' + encodeURIComponent(key), this.getHttpOptions()
)
.pipe(shareReplay(1),
... | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
MethodDeclaration |
deleteDocumentTag(documentID: string, key: string, callback: HttpErrorCallback): Observable<any> {
return this.httpClient
.delete<Tag>(
this.configurationService.apigateway.url + '/documents/' + documentID + '/tags/' + encodeURIComponent(key), this.getHttpOptions()
)
.pipe(shareReplay(1),... | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
MethodDeclaration |
getDocumentUrl(documentID: string, queryString: string, callback: HttpErrorCallback): Observable<{} | string> {
return this.httpClient
.get<any>(this.configurationService.apigateway.url + '/documents/' + documentID + '/url' + queryString, this.getHttpOptions())
.pipe(shareReplay(1),
catchError(... | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
MethodDeclaration |
getDocumentContent(documentID: string, queryString: string, callback: HttpErrorCallback): Observable<any> {
return this.httpClient
.get<any>(this.configurationService.apigateway.url + '/documents/' + documentID + '/content' + queryString, this.getHttpOptions())
.pipe(shareReplay(1),
catchError(... | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
MethodDeclaration |
postDocumentFormat(documentID: string, json: string, callback: HttpErrorCallback): Observable<any> {
const body = JSON.parse(json);
return this.httpClient
.post<any>(this.configurationService.apigateway.url + '/documents/' + documentID + '/formats', body, this.getHttpOptions())
.pipe(shareReplay(1)... | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
MethodDeclaration |
getDocumentVersions(documentID: string, callback: HttpErrorCallback): Observable<{} | string> {
return this.httpClient
.get<string>(this.configurationService.apigateway.url + '/documents/' + documentID + '/versions', this.getHttpOptions())
.pipe(shareReplay(1),
catchError(callback.handleApiErro... | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
MethodDeclaration |
getDocumentsUpload(queryString: string, callback: HttpErrorCallback): Observable<{} | string> {
return this.httpClient
.get<string>(this.configurationService.apigateway.url + '/documents/upload' + queryString, this.getHttpOptions())
.pipe(shareReplay(1),
catchError(callback.handleApiError));
... | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
MethodDeclaration |
getDocumentUpload(documentID: string, queryString: string, callback: HttpErrorCallback): Observable<{} | string> {
return this.httpClient
.get<string>(this.configurationService.apigateway.url + '/documents/' + documentID + '/upload' + queryString, this.getHttpOptions())
.pipe(shareReplay(1),
ca... | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
MethodDeclaration |
postSearch(json: string, queryString: string, callback: HttpErrorCallback): Observable<{} | Document[]> {
const body = JSON.parse(json);
return this.httpClient
.post<Array<Document>>(this.configurationService.apigateway.url + '/search' + queryString, body, this.getHttpOptions())
.pipe(shareReplay(1... | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
MethodDeclaration |
getAllSites(queryString: string, callback: HttpErrorCallback): Observable<{} | Site[]> {
return this.httpClient
.get<Site[]>(this.configurationService.apigateway.url + '/sites' + queryString, this.getHttpOptions())
.pipe(shareReplay(1),
catchError(callback.handleApiError));
} | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
MethodDeclaration |
getAllPresets(queryString: string, callback: HttpErrorCallback): Observable<{} | Preset[]> {
return this.httpClient
.get<Preset[]>(this.configurationService.apigateway.url + '/presets' + queryString, this.getHttpOptions())
.pipe(shareReplay(1),
catchError(callback.handleApiError));
} | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
MethodDeclaration |
postPreset(json: string, callback: HttpErrorCallback): any {
const body = JSON.parse(json);
return this.httpClient
.post<Preset>(this.configurationService.apigateway.url + '/presets', body, this.getHttpOptions())
.pipe(shareReplay(1),
catchError(callback.handleApiError));
} | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
MethodDeclaration |
deletePreset(presetID: string, callback: HttpErrorCallback): Observable<{} | Preset> {
return this.httpClient
.delete<Preset>(this.configurationService.apigateway.url + '/presets/' + presetID, this.getHttpOptions())
.pipe(shareReplay(1),
catchError(callback.handleApiError));
} | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
MethodDeclaration |
getPresetTags(presetID: string, queryString: string, callback: HttpErrorCallback): Observable<{} | Array<Tag>> {
return this.httpClient
.get<Array<Tag>>(this.configurationService.apigateway.url + '/presets/' + presetID + '/tags' + queryString, this.getHttpOptions())
.pipe(shareReplay(1),
catchE... | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
MethodDeclaration |
postPresetTag(presetID: string, json: string, callback: HttpErrorCallback): Observable<any> {
const body = JSON.parse(json);
return this.httpClient
.post<Tag>(this.configurationService.apigateway.url + '/presets/' + presetID + '/tags', body, this.getHttpOptions())
.pipe(shareReplay(1),
catc... | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
MethodDeclaration |
deletePresetTag(presetID: string, key: string, callback: HttpErrorCallback): Observable<any> {
return this.httpClient
.delete<Tag>(
this.configurationService.apigateway.url + '/presets/' + presetID + '/tags/' + encodeURIComponent(key), this.getHttpOptions()
)
.pipe(shareReplay(1),
... | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
MethodDeclaration |
getVersion(callback: HttpErrorCallback): Observable<any> {
return this.httpClient
.get<any>(
this.configurationService.apigateway.url + '/version', this.getHttpOptions()
)
.pipe(shareReplay(1),
catchError(callback.handleApiError));
} | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
MethodDeclaration |
getAllWebhooks(queryString: string, callback: HttpErrorCallback): Observable<{} | Webhook[]> {
return this.httpClient
.get<Webhook[]>(this.configurationService.apigateway.url + '/webhooks' + queryString, this.getHttpOptions())
.pipe(shareReplay(1),
catchError(callback.handleApiError));
} | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
MethodDeclaration |
postWebhook(json: string, callback: HttpErrorCallback): any {
const body = JSON.parse(json);
return this.httpClient
.post<Webhook>(this.configurationService.apigateway.url + '/webhooks', body, this.getHttpOptions())
.pipe(shareReplay(1),
catchError(callback.handleApiError));
} | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
MethodDeclaration |
deleteWebhook(webhookID: string, callback: HttpErrorCallback): any {
return this.httpClient
.delete<Webhook>(this.configurationService.apigateway.url + '/webhooks/' + webhookID, this.getHttpOptions())
.pipe(shareReplay(1),
catchError(callback.handleApiError));
} | formkiq/formkiq-console | src/app/services/api.service.ts | TypeScript |
ClassDeclaration |
export declare class TabBar implements ComponentInterface {
el: HTMLElement;
queue: QueueApi;
doc: Document;
keyboardVisible: boolean;
/**
* The mode determines which platform styles to use.
*/
mode: Mode;
/**
* The color to use from your application's color palette.
* D... | Ignacio1224/FMS-Frontend | node_modules/@ionic/core/dist/types/components/tab-bar/tab-bar.d.ts | TypeScript |
MethodDeclaration |
selectedTabChanged(): void; | Ignacio1224/FMS-Frontend | node_modules/@ionic/core/dist/types/components/tab-bar/tab-bar.d.ts | TypeScript |
MethodDeclaration |
protected onKeyboardWillHide(): void; | Ignacio1224/FMS-Frontend | node_modules/@ionic/core/dist/types/components/tab-bar/tab-bar.d.ts | TypeScript |
MethodDeclaration |
protected onKeyboardWillShow(): void; | Ignacio1224/FMS-Frontend | node_modules/@ionic/core/dist/types/components/tab-bar/tab-bar.d.ts | TypeScript |
MethodDeclaration |
componentWillLoad(): void; | Ignacio1224/FMS-Frontend | node_modules/@ionic/core/dist/types/components/tab-bar/tab-bar.d.ts | TypeScript |
MethodDeclaration |
hostData(): {
'role': string;
'aria-hidden': string | null;
class: {
'tab-bar-translucent': boolean;
'tab-bar-hidden': boolean;
} | {
[x: string]: boolean;
'tab-bar-translucent': boolean;
'tab-bar-hidden': boolean;
};
... | Ignacio1224/FMS-Frontend | node_modules/@ionic/core/dist/types/components/tab-bar/tab-bar.d.ts | TypeScript |
ClassDeclaration |
export class Attendance {
attendance_id: number;
status: string;
in_time: any;
out_time: any;
date_of_attendance: string;
employees_id: number;
} | amalikh/frontend-ems-netlify | src/app/layout/attendance/attendace.model.ts | TypeScript |
InterfaceDeclaration |
interface utilisateur | 9550327/salus | src/qt/locale/bitcoin_fr.ts | TypeScript |
InterfaceDeclaration |
interface de | 9550327/salus | src/qt/locale/bitcoin_fr.ts | TypeScript |
InterfaceDeclaration |
interface et | 9550327/salus | src/qt/locale/bitcoin_fr.ts | TypeScript |
FunctionDeclaration |
async function readJsonFile<T>(pathToFile: string): Promise<T | undefined> {
try {
await fs.access(pathToFile)
const contents = await fs.readFile(pathToFile, {encoding: 'utf-8'})
return JSON.parse(contents) as T
} catch {
return undefined
}
} | nessjs/ness | src/utils/next.ts | TypeScript |
FunctionDeclaration |
function zipDirectory(directory: string, outputFile: string): Promise<string> {
return new Promise(async (resolve, reject) => {
// The below options are needed to support following symlinks when building zip files:
// - nodir: This will prevent symlinks themselves from being copied into the zip.
// - fol... | nessjs/ness | src/utils/next.ts | TypeScript |
ArrowFunction |
(config: CacheConfig) => {
return Object.keys(config).reduce(
(newConfig, nextConfigKey) => ({
...newConfig,
...(fs.pathExistsSync(config[nextConfigKey].path)
? {[nextConfigKey]: config[nextConfigKey]}
: {}),
}),
{} as CacheConfig,
)
} | nessjs/ness | src/utils/next.ts | TypeScript |
ArrowFunction |
(newConfig, nextConfigKey) => ({
...newConfig,
...(fs.pathExistsSync(config[nextConfigKey].path)
? {[nextConfigKey]: config[nextConfigKey]}
: {}),
}) | nessjs/ness | src/utils/next.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.