Skip to content

Commit 4895a07

Browse files
skdejperelli
authored andcommitted
Fix "error TS1046"
error TS1046: Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."
1 parent 7491711 commit 4895a07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,6 @@ interface OsmStaticMapsOptions {
138138
}
139139

140140
/** Renders a map controlled by the options passed and returns an image */
141-
function _default<T extends OsmStaticMapsOptions>(
141+
declare function _default<T extends OsmStaticMapsOptions>(
142142
options?: T
143143
): Promise<T extends { renderToHtml: true } ? string : Buffer>;

0 commit comments

Comments
 (0)