GithubHelp home page GithubHelp logo

Comments (6)

valgeirb avatar valgeirb commented on May 22, 2024 15

Will look into this.

from vue3-popper.

NatanCieplinski avatar NatanCieplinski commented on May 22, 2024 3

Will look into this.

Did you already started on it? I'm looking in sharpening my ts skills and if you don't mind i would like to work on this enhancement

from vue3-popper.

carloshpds avatar carloshpds commented on May 22, 2024 2

@satanshiro Just to complement your solution:

1- You have to import Component from vue and ensure that the import is inside of declare

declare module "vue3-popper" {
  import { Component } from "vue";
  const file: Component;
  export default file;
}

2- you may have to add the path for custom typings in your tsconfig.json

"paths": {
      "@/*": [
        "src/*",
        "src/typings/*"
      ]
    },

Reference on stackoverflow

from vue3-popper.

valgeirb avatar valgeirb commented on May 22, 2024 2

@NatanCieplinski sorry for the delay, this has been added in v1.5.0

from vue3-popper.

satanshiro avatar satanshiro commented on May 22, 2024 1

to compile without official typings put this
in a d.ts file in src folder

declare module "vue3-popper" {
    const file: Component;

    export default file;
}

and in main.ts

import Popper from "vue3-popper";
app.component('Popper', Popper);

from vue3-popper.

ngocsangyem avatar ngocsangyem commented on May 22, 2024 1

Try this vue-use-popperjs wrapper popperjs. It also supports typescript. @NatanCieplinski

from vue3-popper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.