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

fix(types): change types #732

Merged
merged 1 commit into from
Jan 26, 2021
Merged

fix(types): change types #732

merged 1 commit into from
Jan 26, 2021

Commits on Jan 26, 2021

  1. fix(types): change types

    in vuex with typescript `this.$content` will not work
    
    example code:
    ```ts
    export const actions: ActionTree<AppState, {}> = {
      // ....
      async loadData({ commit }) {
        const data: IData[] = (await this.$content(this.$i18n.locale, "data").fetch().catch(console.error)) as any;
        if (data) {
          commit("UPDATE_DATA", data);
        }
      }
    };
    ```
    
    it should be typed as 'contentFunc'
    pa001024 authored Jan 26, 2021
    Configuration menu
    Copy the full SHA
    a59a9d9 View commit details
    Browse the repository at this point in the history