import * as x from 'x-value'; import {AccessToken, extendAPI, procedure} from '../library/index.js'; declare global { namespace Backit { // eslint-disable-next-line @typescript-eslint/consistent-type-definitions interface APINamespaces { github: typeof API; } } } namespace API.GitHub { export const exchangeAccessToken = procedure( x.object({ code: x.string, }), x.object({ token: AccessToken, }), ); } extendAPI(API);