Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate fluent types and preference key types #62

Open
2 tasks
northword opened this issue Dec 7, 2024 · 0 comments
Open
2 tasks

Generate fluent types and preference key types #62

northword opened this issue Dec 7, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@northword
Copy link
Owner

northword commented Dec 7, 2024

fluent types: https://github.com/dvanoni/notero/blob/main/scripts/generate-fluent-types.ts

preference key types: #54


需要对 zotero-types 做一些修改 (可能):

  • decalre const Zotero {} -> declare namespace Zotero {},因为 const 不支持继承/扩展

  • Zotero.Prefs.get(key: string | boolean | number) ->

    type PrefKey = string | boolean | number
    Zotero.Prefs.get(key: PrefKey)
@northword northword added the enhancement New feature or request label Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant