getAll
client.templates.getAll(): Promise<Template[]>
Retrieves all available templates.
Returns every template in the system regardless of type or category. Use this for comprehensive template browsing or to populate a full template gallery.
Parameters
No parameters.
Returns
Promise<Template[]> — A promise that resolves to an array of Template objects
Example
import { CodeBoltClient } from '@codebolt/clientsdk';
const client = new CodeBoltClient();
const result = await client.templates.getAll();
console.log(result);