From a428a42eada3b594f6008253b14dcb8b74a59441 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Bostro=CC=88m?= Date: Wed, 2 Oct 2024 00:16:47 +0300 Subject: [PATCH] docs: fix import path BREAKING CHANGE: Dropped support for node < 18. --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index ac14d41..21a025a 100644 --- a/README.md +++ b/README.md @@ -148,9 +148,8 @@ Each extension will receive the canvas returned by the previous extension. The c The following example extension draws a border around the image 5px from the edge using the configured text color. ```typescript -import { generate, ComputedOptions } from 'text-to-image'; // All types from 'node-canvas' are re-exported for convenience -import { Canvas } from 'text-to-image/extensions'; +import { Canvas, ComputedOptions, generate } from 'text-to-image'; const makeBorder = (canvas: Canvas, conf: ComputedOptions) => { const { width, height } = canvas;