olivernn / lunr.js

A bit like Solr, but much smaller and not as bright
http://lunrjs.com
MIT License
8.87k stars 546 forks source link

typescript results #528

Open ted-at-change opened 8 months ago

ted-at-change commented 8 months ago

Sorry if this is the wrong place, but the git page for definitely typed has a million projects, issues and discussions. The type definition file defines metadata as object. That seems hard to use

class MatchData {
    /**
     * A cloned collection of metadata associated with this document.
     */
    metadata: object;

How, in typescript, is this usable?