Back to reference

init()

init()

Initialize Grammarly. The ClientId must be passed another way.

declare function init(): Promise<void>;

init(clientId, config)

Initialize Grammarly and start using EditorSDK to connect editors.

declare function init(clientId: string, config?: Config): Promise<EditorSDK>;

Examples

const Grammarly = await init("YOUR_CLIENT_ID");

Parameters

NameTypeDescription
clientIdstringThe ClientId for authentication
configConfig
Last Updated: 5/12/2022, 10:30:27 PM