chore: update return type of generateCertificate function to implicit
This commit is contained in:
@@ -17,7 +17,7 @@ export interface CertificateGenerationResult {
|
|||||||
error?: string;
|
error?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const generateCertificate = async (data: TCertificateDownload):Promise<Buffer> => {
|
export const generateCertificate = async (data: TCertificateDownload) => {
|
||||||
const { html, styles } = generateCertificateHtml(data);
|
const { html, styles } = generateCertificateHtml(data);
|
||||||
return getCloudflarePdfBuffer(html, styles);
|
return getCloudflarePdfBuffer(html, styles);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user