UNPKG

@blinkk/editor

Version:

Structured content editor with live previews.

21 lines (20 loc) 657 B
import { ServiceServerApi } from '../api'; /** * Example api that returns data through a 'simulated' network. */ export declare class GithubApi extends ServiceServerApi { /** * Verify that the authentication for services that require auth. * * @returns True if the auth checks out. */ checkAuth(): boolean; /** * Specific services may need to add additional params to all of * the api request (such as authentication params.) * * @param params Params being sent to the api. * @returns Updated params to send to the api. */ expandParams(params: Record<string, any>): Record<string, any>; }