Skip to content

Commit

Permalink
simple docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nixzhu committed Sep 28, 2023
1 parent f56e6e8 commit a0ce172
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/Ananda/Macros.swift
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
/// Generate initializer for an AnandaModel
@attached(member, names: named(init(json:)))
public macro AnandaInit() = #externalMacro(
module: "AnandaMacros",
type: "AnandaInitMacro"
)

/// Provides a raw key for decoding the property
@attached(peer)
public macro AnandaKey(_: String) = #externalMacro(
module: "AnandaMacros",
type: "AnandaKeyMacro"
)

/// Ignore this property from decoding
@attached(peer)
public macro AnandaIgnored() = #externalMacro(
module: "AnandaMacros",
Expand Down

0 comments on commit a0ce172

Please sign in to comment.