Code Monkey home page Code Monkey logo

Comments (2)

PatoDeVille avatar PatoDeVille commented on September 10, 2024 2

i am encountering the same problem, where i am left with basically a type free module in my application (angular app with qlik integration via enigmajs) , because
i cant get these types as per the documentation here https://qlik.dev/apis/json-rpc/qix/field/#%23%2Fentries%2FField

(its showing field but i mean all of it) and it all starts when you..

import enigma from 'enigma.js'

const config: enigmaJS.IConfig = {
     // ...
    };
    
    const session: enigmaJS.ISession = await enigma.create(config);
    const global = await session.open()

    //Property 'openDoc' does not exist on type 'IGeneratedAPI'
    global.openDoc(...)

i dont know what i might be missing, or if i have to extend any types or something, funny thing...the code works if i keep any in most of it, so from there, documents, generic objects, etc etc. all is untyped and is very challenging to code unless you know your way through the api

i am using version 2.9.0 and version 2.2.2 for @types

from enigma.js.

nilzona avatar nilzona commented on September 10, 2024

Hello @jordan-erisman. Can you expand your example a bit more? .. specifically I want to know if you have created your own global type or augmented the types in @types/enigma.js somehow. Because as you can see here https://www.npmjs.com/package/@types/enigma.js?activeTab=code .. there is actually no type for the global api there.

from enigma.js.

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.