Skip to content

Instantly share code, notes, and snippets.

@wilfrem
Created March 6, 2018 04:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wilfrem/512e4adcde14218cc480305de8e9c940 to your computer and use it in GitHub Desktop.
Save wilfrem/512e4adcde14218cc480305de8e9c940 to your computer and use it in GitHub Desktop.
イメージ
// core側
export class HogeManager {
@hookPoint("someUsefulFunc")
someUsefulFunc() {
// core側の処理
}
}
// plugin側
export function entryPoint(hookManager) {
hookManager.register("someUsefulFunc", { "prehook": args => {
//処理
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment