Giter Club home page Giter Club logo

xmltv's People

Contributors

dank074 avatar evoactivity avatar github-actions[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

fathikom dank074

xmltv's Issues

TypeScript errors when importing package

When I attempt to import the package into my TypeScript project using

import { parseXmltv } from "@iptv/xmltv"

I get the following error:

Could not find a declaration file for module '@iptv/xmltv'. 'c:/Users/***/Documents/my-application/node_modules/@iptv/xmltv/dist/xmltv.js' implicitly has an 'any' type.
  There are types at 'c:/Users/***/Documents/my-application/node_modules/@iptv/xmltv/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@iptv/xmltv' library may need to update its package.json or typings.ts(7016)

I found this in the TypeScript documentation while searching for a solution:

It’s important to note that the CommonJS entrypoint and the ES module entrypoint each needs its own declaration file, even if the contents are the same between them. Every declaration file is interpreted either as a CommonJS module or as an ES module, based on its file extension and the "type" field of the package.json, and this detected module kind must match the module kind that Node will detect for the corresponding JavaScript file for type checking to be correct. Attempting to use a single .d.ts file to type both an ES module entrypoint and a CommonJS entrypoint will cause TypeScript to think only one of those entrypoints exists, causing compiler errors for users of the package
(https://www.typescriptlang.org/docs/handbook/esm-node.html)

DateTime parsing broken for ISO substrings like `YYYY`

Unfortunately with the last release v0.1.4 the parsing of ISO substrings is broken.
The date property of a program can be one of:

  1. YYYY (2021)
  2. YYYYMM (202105)
  3. YYYYMMDD (20210515)

All dates and times in this DTD follow the same format, loosely based
on ISO 8601. They can be 'YYYYMMDDhhmmss' or some initial
substring, for example if you only know the year and month you can
have 'YYYYMM'. You can also append a timezone to the end; if no
explicit timezone is given, UTC is assumed. Examples:
'200007281733 BST', '200209', '19880523083000 +0300'. (BST == +0100.)

Thx for the tooling

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.