8000 Version Packages by github-actions[bot] · Pull Request #877 · gqty-dev/gqty · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Version Packages #877

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

Merged
merged 1 commit into from
May 20, 2022
Merged

Version Packages #877

merged 1 commit into from
May 20, 2022

Conversation

github-actions[bot]
Copy link
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@gqty/cli@3.3.0

Minor Changes

  • 323ecbe: A new option enumsAsConsts is added to the GQtyConfig

    Here's a sample of how it differs from enum

    enum Enum {
      A_B_C = 'A_B_C',
      X_Y_Z = 'X_Y_Z',
      _TEST = '_TEST',
      My_Value = 'My_Value',
    }
    
    export const EnumAsConst = {
      ABC: 'A_B_C',
      XYZ: 'X_Y_Z',
      Test: '_TEST',
      MyValue: 'My_Value',
    } as const;
    export type EnumAsConst = typeof EnumAsConst[keyof typeof EnumAsConst];
    
    function useEnum(value: Enum) {}
    function useEnumAsConst(value: EnumAsConst) {}
    
    useEnum(Enum.A_B_C); // Ok
    useEnum('A_B_C'); // Error: Argument of type '"A_B_C"' is not assignable to parameter of type 'Enum'.
    
    useEnumAsConst(Enum.A_B_C); // Ok
    useEnumAsConst(EnumAsConst.ABC); // Ok
    useEnumAsConst('A_B_C'); // Ok

    See also:

@vercel
Copy link
vercel bot commented May 20, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
gqty ✅ Ready (Inspect) Visit Preview May 20, 2022 at 11:15PM (UTC)

@github-actions github-actions bot force-pushed the changeset-release/main branch from ae9bcc0 to b53ff9a Compare May 20, 2022 23:12
@github-actions github-actions bot force-pushed the changeset-release/main branch from b53ff9a to 6e3df55 Compare May 20, 2022 23:13
@PabloSzx PabloSzx merged commit 76b4cc8 into main May 20, 2022
@PabloSzx PabloSzx deleted the changeset-release/main branch May 20, 2022 23:14
vicary added a commit that referenced this pull request Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0