소스 검색

add isHTML flag to types (fixes #1266)

tags/3.2.1
Ulrich-Matthias Schäfer 9 달 전
부모
커밋
93f2298510
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5
    1
      svg.js.d.ts

+ 5
- 1
svg.js.d.ts 파일 보기

@@ -12,7 +12,11 @@ declare type CSSStyleName = Exclude<

declare module '@svgdotjs/svg.js' {
function SVG(): Svg
function SVG(selector: QuerySelector): Element
/**
* @param selectorOrHtml pass in a css selector or an html/svg string
* @param isHTML only used if first argument is an html string. Will treat the svg/html as html and not svg
*/
function SVG(selectorOrHtml: QuerySelector, isHTML?: boolean): Element
function SVG<T>(el: T): SVGTypeMapping<T>
function SVG(domElement: HTMLElement): Element


Loading…
취소
저장